From: Toni Wilen Date: Fri, 14 Jan 2022 19:10:16 +0000 (+0200) Subject: Fix filtered lores in 16-bit host mode X-Git-Tag: 4910~20 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=33f001e9c4f8162acdcf7b54fc64a93a09414b3b;p=francis%2Fwinuae.git Fix filtered lores in 16-bit host mode --- 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; }