From: Toni Wilen Date: Wed, 6 Sep 2023 17:18:44 +0000 (+0300) Subject: Screenshot autoclip programmed native mode support X-Git-Tag: 5.1.0~128 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=d12cd8b1f107ce6c910982580fefb780ace609db;p=francis%2Fwinuae.git Screenshot autoclip programmed native mode support --- diff --git a/od-win32/screenshot.cpp b/od-win32/screenshot.cpp index c7571ae4..46a73ba2 100644 --- a/od-win32/screenshot.cpp +++ b/od-win32/screenshot.cpp @@ -221,10 +221,10 @@ static int screenshot_prepare(int monid, int imagemode, struct vidbuffer *vb, bo int maxh = currprefs.screenshot_max_height << currprefs.gfx_vresolution; int minw = currprefs.screenshot_min_width << currprefs.gfx_resolution; int minh = currprefs.screenshot_min_height << currprefs.gfx_vresolution; - if (minw > AMIGA_WIDTH_MAX << currprefs.gfx_resolution) - minw = AMIGA_WIDTH_MAX << currprefs.gfx_resolution; - if (minh > AMIGA_HEIGHT_MAX << currprefs.gfx_resolution) - minh = AMIGA_HEIGHT_MAX << currprefs.gfx_resolution; + if (minw > (maxhpos_display + 1) << currprefs.gfx_resolution) + minw = (maxhpos_display + 1) << currprefs.gfx_resolution; + if (minh > (maxvsize_display + 1) << currprefs.gfx_resolution) + minh = (maxvsize_display + 1) << currprefs.gfx_resolution; if (maxw < minw) maxw = minw; if (maxh < minh)