small DPMS update

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7757 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rudolf Cornelissen 2004-06-06 10:34:03 +00:00
parent e85b66ba46
commit 17f2ecd6d4
2 changed files with 10 additions and 10 deletions

View File

@ -1,6 +1,6 @@
/* CTRC functionality */ /* CTRC functionality */
/* Author: /* Author:
Rudolf Cornelissen 11/2002-5/2004 Rudolf Cornelissen 11/2002-6/2004
*/ */
#define MODULE_BIT 0x00040000 #define MODULE_BIT 0x00040000
@ -545,12 +545,12 @@ status_t nv_crtc_dpms_fetch(bool *display, bool *h, bool *v)
*h = !(CRTCR(REPAINT1) & 0x80); *h = !(CRTCR(REPAINT1) & 0x80);
*v = !(CRTCR(REPAINT1) & 0x40); *v = !(CRTCR(REPAINT1) & 0x40);
LOG(4,("CTRC: fetched DPMS state:")); LOG(4,("CTRC: fetched DPMS state: "));
if (display) LOG(4,("display on, ")); if (*display) LOG(4,("display on, "));
else LOG(4,("display off, ")); else LOG(4,("display off, "));
if (h) LOG(4,("hsync enabled, ")); if (*h) LOG(4,("hsync enabled, "));
else LOG(4,("hsync disabled, ")); else LOG(4,("hsync disabled, "));
if (v) LOG(4,("vsync enabled\n")); if (*v) LOG(4,("vsync enabled\n"));
else LOG(4,("vsync disabled\n")); else LOG(4,("vsync disabled\n"));
return B_OK; return B_OK;

View File

@ -1,6 +1,6 @@
/* second CTRC functionality for GeForce cards */ /* second CTRC functionality for GeForce cards */
/* Author: /* Author:
Rudolf Cornelissen 11/2002-5/2004 Rudolf Cornelissen 11/2002-6/2004
*/ */
#define MODULE_BIT 0x00020000 #define MODULE_BIT 0x00020000
@ -528,12 +528,12 @@ status_t nv_crtc2_dpms_fetch(bool *display, bool *h, bool *v)
*h = !(CRTC2R(REPAINT1) & 0x80); *h = !(CRTC2R(REPAINT1) & 0x80);
*v = !(CRTC2R(REPAINT1) & 0x40); *v = !(CRTC2R(REPAINT1) & 0x40);
LOG(4,("CTRC2: fetched DPMS state:")); LOG(4,("CTRC2: fetched DPMS state: "));
if (display) LOG(4,("display on, ")); if (*display) LOG(4,("display on, "));
else LOG(4,("display off, ")); else LOG(4,("display off, "));
if (h) LOG(4,("hsync enabled, ")); if (*h) LOG(4,("hsync enabled, "));
else LOG(4,("hsync disabled, ")); else LOG(4,("hsync disabled, "));
if (v) LOG(4,("vsync enabled\n")); if (*v) LOG(4,("vsync enabled\n"));
else LOG(4,("vsync disabled\n")); else LOG(4,("vsync disabled\n"));
return B_OK; return B_OK;