From 799a0ae018b90d8e2bd1f9bc8e33ddc870f1a369 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 26 Feb 2012 16:00:10 +0900 Subject: [PATCH] Fix a bogus cshift calculation in sw32. Found via valgrind and gammatable having become malloced instead of static. --- libs/video/renderer/sw32/draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/video/renderer/sw32/draw.c b/libs/video/renderer/sw32/draw.c index e854c583e..17ad12e91 100644 --- a/libs/video/renderer/sw32/draw.c +++ b/libs/video/renderer/sw32/draw.c @@ -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];