From 33f001e9c4f8162acdcf7b54fc64a93a09414b3b Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Fri, 14 Jan 2022 21:10:16 +0200 Subject: [PATCH] Fix filtered lores in 16-bit host mode --- gfxutil.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gfxutil.cpp b/gfxutil.cpp index 6bd3b614..f35129b4 100644 --- a/gfxutil.cpp +++ b/gfxutil.cpp @@ -503,7 +503,7 @@ void alloc_colors64k(int monid, int rw, int gw, int bw, int rs, int gs, int bs, xredcolor_s = rs; xgreencolor_s = gs; xbluecolor_s = bs; - xredcolor_m = ((1 << rw) - 1) << xredcolor_s; - xgreencolor_m = ((1 << gw) - 1) << xgreencolor_s; - xbluecolor_m = ((1 << bw) - 1) << xbluecolor_s; + xredcolor_m = (1 << rw) - 1; + xgreencolor_m = (1 << gw) - 1; + xbluecolor_m = (1 << bw) - 1; } -- 2.47.3