From beb3aa92ef11e86e0df33426d4295634144501de Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 16 Oct 2022 13:50:21 +0300 Subject: [PATCH] Fix screenshot --- od-win32/screenshot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/od-win32/screenshot.cpp b/od-win32/screenshot.cpp index 01997513..da218f44 100644 --- a/od-win32/screenshot.cpp +++ b/od-win32/screenshot.cpp @@ -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); -- 2.47.3