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)