diff vidix/drivers/radeon_vid.c @ 7493:bd423c9c835a

rage128 gray fix? patch by Marcus.Blomenkamp@epost.de
author arpi
date Mon, 23 Sep 2002 21:18:59 +0000
parents f3663e600414
children 3f5788602dfd
line wrap: on
line diff
--- a/vidix/drivers/radeon_vid.c	Mon Sep 23 21:17:30 2002 +0000
+++ b/vidix/drivers/radeon_vid.c	Mon Sep 23 21:18:59 2002 +0000
@@ -1037,9 +1037,9 @@
 
     if(besr.deinterlace_on) OUTREG(OV0_DEINTERLACE_PATTERN,besr.deinterlace_pattern);
 #ifdef RAGE128
-    OUTREG(OV0_COLOUR_CNTL, (besr.brightness & 0x7f) |
-			    (besr.saturation << 8) |
-			    (besr.saturation << 16));
+    OUTREG(OV0_COLOUR_CNTL, (((besr.brightness*64)/1000) & 0x7f) |
+                            (((besr.saturation*31+31000)/2000) << 8) |
+                            (((besr.saturation*31+31000)/2000) << 16));
 #endif
     radeon_fifo_wait(2);
     OUTREG(OV0_GRAPHICS_KEY_MSK, besr.graphics_key_msk);