# HG changeset patch # User nick # Date 1011345666 0 # Node ID 7444f7901ae29952144de64591d955725dce4609 # Parent 9a33ad2f3547affd693280014de12c053a3fd96a Fixed saturation computing for rage128 diff -r 9a33ad2f3547 -r 7444f7901ae2 vidix/drivers/radeon_vid.c --- 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