changeset 4230:7444f7901ae2

Fixed saturation computing for rage128
author nick
date Fri, 18 Jan 2002 09:21:06 +0000
parents 9a33ad2f3547
children c7a8f3125805
files vidix/drivers/radeon_vid.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/drivers/radeon_vid.c	Fri Jan 18 09:11:11 2002 +0000
+++ b/vidix/drivers/radeon_vid.c	Fri Jan 18 09:21:06 2002 +0000
@@ -1089,7 +1089,7 @@
 #ifdef RAGE128
     br = equal.brightness * 64 / 1000;
     if(br < -64) br = -64; if(br > 63) br = 63;
-    sat = (equal.saturation + 1000) * 32 / 1000;
+    sat = (equal.saturation + 1000) * 16 / 1000;
     if(sat < 0) sat = 0; if(sat > 31) sat = 31;
     OUTREG(OV0_COLOUR_CNTL, (br & 0x7f) | (sat << 8) | (sat << 16));
 #else