diff options
Diffstat (limited to 'src/r128_reg.h')
-rw-r--r-- | src/r128_reg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/r128_reg.h b/src/r128_reg.h index 31883e3..721a72c 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) |