]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Screenshot autoclip programmed native mode support
authorToni Wilen <twilen@winuae.net>
Wed, 6 Sep 2023 17:18:44 +0000 (20:18 +0300)
committerToni Wilen <twilen@winuae.net>
Wed, 6 Sep 2023 17:18:44 +0000 (20:18 +0300)
od-win32/screenshot.cpp

index c7571ae46fc8beeeffebba5eda567abd6688bd57..46a73ba205d3a191805f7cb8a88637965b585c63 100644 (file)
@@ -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)