From: Toni Wilen Date: Sun, 16 Oct 2022 10:50:21 +0000 (+0300) Subject: Fix screenshot X-Git-Tag: 41000~115 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=beb3aa92ef11e86e0df33426d4295634144501de;p=francis%2Fwinuae.git Fix screenshot --- 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);