From 3a26e5b241ea6caa01968c4c1199e14792d7c344 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Tue, 14 Apr 2015 21:17:52 +0000 Subject: [PATCH] Correct the HICTINT_GRAYSCALE calculation for hightile. git-svn-id: https://svn.eduke32.com/eduke32@5148 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymost.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/build/src/polymost.c b/polymer/eduke32/build/src/polymost.c index 590677ebc..392506a2f 100644 --- a/polymer/eduke32/build/src/polymost.c +++ b/polymer/eduke32/build/src/polymost.c @@ -1136,9 +1136,9 @@ int32_t gloadtile_hi(int32_t dapic,int32_t dapalnum, int32_t facen, hicreplctyp if (effect & HICTINT_GRAYSCALE) { - tcol.g = tcol.r = tcol.b = (uint8_t) ((tcol.r * GRAYSCALE_COEFF_RED) + + tcol.g = tcol.r = tcol.b = (uint8_t) ((tcol.b * GRAYSCALE_COEFF_RED) + (tcol.g * GRAYSCALE_COEFF_GREEN) + - (tcol.b * GRAYSCALE_COEFF_BLUE)); + (tcol.r * GRAYSCALE_COEFF_BLUE)); } if (effect & HICTINT_INVERT)