summaryrefslogtreecommitdiff
path: root/src/r128_reg.h
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.de>2005-05-23 09:50:20 +0000
committerEgbert Eich <eich@suse.de>2005-05-23 09:50:20 +0000
commit0845d1db801ae74688464bd4c41a7e40e4b50186 (patch)
tree655817fdedffbde8a1d58521b30ccb4fd3a46360 /src/r128_reg.h
parent74b86b036def72e5180a46871b8452ba9eea9bb1 (diff)
Explicitely disable DPMS power states during close screen. Fix macro that
takes a value and a mask of bits to modify to be behave evquvalently if the bits that should remain unchanged are set or unset in the value (Bugzilla #3369).
Diffstat (limited to 'src/r128_reg.h')
-rw-r--r--src/r128_reg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/r128_reg.h b/src/r128_reg.h
index 31883e3d..721a72c7 100644
--- a/src/r128_reg.h
+++ b/src/r128_reg.h
@@ -68,7 +68,7 @@
do { \
CARD32 tmp = INREG(addr); \
tmp &= (mask); \
- tmp |= (val); \
+ tmp |= ((val) & ~(mask)); \
OUTREG(addr, tmp); \
} while (0)
@@ -84,7 +84,7 @@
do { \
CARD32 tmp = INPLL(pScrn, addr); \
tmp &= (mask); \
- tmp |= (val); \
+ tmp |= ((val) & ~(mask)); \
OUTPLL(addr, tmp); \
} while (0)