summaryrefslogtreecommitdiffstats
path: root/vidix/drivers/radeon_vid.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-09-23 21:18:59 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-09-23 21:18:59 +0000
commit8ee6205828e630cb688d4344c2991489af26019e (patch)
tree4d129e56320068b9a0071981d3906a9a3ee1bb45 /vidix/drivers/radeon_vid.c
parentc84d0142f1a25535361edecf78d18019fb2ffb58 (diff)
downloadmpv-8ee6205828e630cb688d4344c2991489af26019e.tar.bz2
mpv-8ee6205828e630cb688d4344c2991489af26019e.tar.xz
rage128 gray fix?
patch by Marcus.Blomenkamp@epost.de git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7494 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'vidix/drivers/radeon_vid.c')
-rw-r--r--vidix/drivers/radeon_vid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vidix/drivers/radeon_vid.c b/vidix/drivers/radeon_vid.c
index 5d70be4f06..f7b57d13ca 100644
--- a/vidix/drivers/radeon_vid.c
+++ b/vidix/drivers/radeon_vid.c
@@ -1037,9 +1037,9 @@ static void radeon_vid_display_video( void )
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);