mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
get the scaling on v_blend right for the change from 0-255 to 0-1
This commit is contained in:
parent
b868a09661
commit
a2ef36e7ba
1 changed files with 3 additions and 3 deletions
|
@ -371,9 +371,9 @@ SCR_ApplyBlend (void) // Used to be V_UpdatePalette
|
|||
b = basepal[2];
|
||||
basepal += 3;
|
||||
|
||||
r += ((int) (v_blend[3] * (v_blend[0] - r))) >> 8;
|
||||
g += ((int) (v_blend[3] * (v_blend[1] - g))) >> 8;
|
||||
b += ((int) (v_blend[3] * (v_blend[2] - b))) >> 8;
|
||||
r += ((int) (v_blend[3] * (v_blend[0] * 256 - r)));
|
||||
g += ((int) (v_blend[3] * (v_blend[1] * 256 - g)));
|
||||
b += ((int) (v_blend[3] * (v_blend[2] * 256 - b)));
|
||||
|
||||
newpal[0] = gammatable[r];
|
||||
newpal[1] = gammatable[g];
|
||||
|
|
Loading…
Reference in a new issue