[Mplayer-cvslog] CVS: main/vidix/drivers radeon_vid.c,1.51,1.52

Arpi of Ize arpi at mplayerhq.hu
Mon Sep 23 23:19:02 CEST 2002


Update of /cvsroot/mplayer/main/vidix/drivers
In directory mail:/var/tmp.root/cvs-serv24163

Modified Files:
	radeon_vid.c 
Log Message:
rage128 gray fix?
patch by Marcus.Blomenkamp at epost.de


Index: radeon_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/drivers/radeon_vid.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -r1.51 -r1.52
--- radeon_vid.c	1 Sep 2002 16:20:37 -0000	1.51
+++ radeon_vid.c	23 Sep 2002 21:18:59 -0000	1.52
@@ -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);




More information about the MPlayer-cvslog mailing list