]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix filtered lores in 16-bit host mode
authorToni Wilen <twilen@winuae.net>
Fri, 14 Jan 2022 19:10:16 +0000 (21:10 +0200)
committerToni Wilen <twilen@winuae.net>
Fri, 14 Jan 2022 19:10:16 +0000 (21:10 +0200)
gfxutil.cpp

index 6bd3b6148399f0b0f0e86a37a7f146674a9a733f..f35129b4ad3e16bdda6da624dda4f1a632409274 100644 (file)
@@ -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;
 }