From 17f2ecd6d429c97b27355d30a6e7cfe77a032240 Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Sun, 6 Jun 2004 10:34:03 +0000 Subject: [PATCH] small DPMS update git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7757 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/accelerants/nvidia/engine/nv_crtc.c | 10 +++++----- src/add-ons/accelerants/nvidia/engine/nv_crtc2.c | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/add-ons/accelerants/nvidia/engine/nv_crtc.c b/src/add-ons/accelerants/nvidia/engine/nv_crtc.c index 550c0b2cf7..81981563cc 100644 --- a/src/add-ons/accelerants/nvidia/engine/nv_crtc.c +++ b/src/add-ons/accelerants/nvidia/engine/nv_crtc.c @@ -1,6 +1,6 @@ /* CTRC functionality */ /* Author: - Rudolf Cornelissen 11/2002-5/2004 + Rudolf Cornelissen 11/2002-6/2004 */ #define MODULE_BIT 0x00040000 @@ -545,12 +545,12 @@ status_t nv_crtc_dpms_fetch(bool *display, bool *h, bool *v) *h = !(CRTCR(REPAINT1) & 0x80); *v = !(CRTCR(REPAINT1) & 0x40); - LOG(4,("CTRC: fetched DPMS state:")); - if (display) LOG(4,("display on, ")); + LOG(4,("CTRC: fetched DPMS state: ")); + if (*display) LOG(4,("display on, ")); else LOG(4,("display off, ")); - if (h) LOG(4,("hsync enabled, ")); + if (*h) LOG(4,("hsync enabled, ")); 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")); return B_OK; diff --git a/src/add-ons/accelerants/nvidia/engine/nv_crtc2.c b/src/add-ons/accelerants/nvidia/engine/nv_crtc2.c index 87b6dc0f3d..0ee8973679 100644 --- a/src/add-ons/accelerants/nvidia/engine/nv_crtc2.c +++ b/src/add-ons/accelerants/nvidia/engine/nv_crtc2.c @@ -1,6 +1,6 @@ /* second CTRC functionality for GeForce cards */ /* Author: - Rudolf Cornelissen 11/2002-5/2004 + Rudolf Cornelissen 11/2002-6/2004 */ #define MODULE_BIT 0x00020000 @@ -528,12 +528,12 @@ status_t nv_crtc2_dpms_fetch(bool *display, bool *h, bool *v) *h = !(CRTC2R(REPAINT1) & 0x80); *v = !(CRTC2R(REPAINT1) & 0x40); - LOG(4,("CTRC2: fetched DPMS state:")); - if (display) LOG(4,("display on, ")); + LOG(4,("CTRC2: fetched DPMS state: ")); + if (*display) LOG(4,("display on, ")); else LOG(4,("display off, ")); - if (h) LOG(4,("hsync enabled, ")); + if (*h) LOG(4,("hsync enabled, ")); 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")); return B_OK;