From a58fb0ed011a89d23e5b6473fa4d0ced26cb6773 Mon Sep 17 00:00:00 2001 From: Denis Pauk Date: Sat, 9 Apr 2022 23:22:36 +0300 Subject: [PATCH] soft: fix colors --- src/client/refresh/soft/sw_image.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/refresh/soft/sw_image.c b/src/client/refresh/soft/sw_image.c index 3c37615d..bcb2fd6f 100644 --- a/src/client/refresh/soft/sw_image.c +++ b/src/client/refresh/soft/sw_image.c @@ -351,7 +351,10 @@ R_ApplyLight(pixel_t pix, const light3_t light) /* full light, code could skip light processing */ if ((light_masked[0] | light_masked[1] | light_masked[2]) <= vid_lightthreshold) + { + // FIXME: color conversion should be applied and based on vid_colormap return pix; + } /* get color component for each component */ b_r = d_8to24table[pix * 4 + 0];