]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix screenshot
authorToni Wilen <twilen@winuae.net>
Sun, 16 Oct 2022 10:50:21 +0000 (13:50 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 16 Oct 2022 10:50:21 +0000 (13:50 +0300)
od-win32/screenshot.cpp

index 01997513fc93af7c122888dc905cb1bf9f990130..da218f44356dd108618dcc6e20d11beafa7f4784 100644 (file)
@@ -647,11 +647,11 @@ static void count_colors(bool alpha)
        int palettecount = 0;
 
        uniquecolorcount = 0;
-       if (d <= 8 || !screenshot_paletteindexed) {
+       if (!screenshot_paletteindexed || alpha) {
+               uniquecolorcount = -1;
                return;
        }
-       if (alpha) {
-               uniquecolorcount = -1;
+       if (d <= 8) {
                return;
        }
        palettebm = xcalloc(uae_u8, w * h);