Fix a bogus cshift calculation in sw32.

Found via valgrind and gammatable having become malloced instead of static.
This commit is contained in:
Bill Currie 2012-02-26 16:00:10 +09:00
parent 07ab5600c9
commit 799a0ae018

View file

@ -1227,7 +1227,7 @@ sw32_Draw_BlendScreen (quat_t color)
r += (int) (color[3] * (color[0] * 256 - r));
g += (int) (color[3] * (color[1] * 256 - g));
b += (int) (color[3] * (color[2] * 256 -g));
b += (int) (color[3] * (color[2] * 256 - b));
newpal[0] = vid.gammatable[r];
newpal[1] = vid.gammatable[g];