Mercurial > mplayer.hg
changeset 7493:bd423c9c835a
rage128 gray fix?
patch by Marcus.Blomenkamp@epost.de
author | arpi |
---|---|
date | Mon, 23 Sep 2002 21:18:59 +0000 |
parents | 5465cbd5c5ef |
children | 229287c14cd4 |
files | vidix/drivers/radeon_vid.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
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);