Skip to content

Commit

Permalink
Fixed #929: DMX auto-height would not increase height size dynamicall…
Browse files Browse the repository at this point in the history
…y, only reduce it
  • Loading branch information
midwan committed Apr 10, 2022
1 parent ad41dea commit 26253a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/osdep/amiberry_gfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -945,10 +945,14 @@ void auto_crop_image()
// Maximum values
if (new_width > currprefs.gfx_monitor[0].gfx_size_win.width)
new_width = currprefs.gfx_monitor[0].gfx_size_win.width;
#ifdef USE_DISPMANX
new_height = new_height << currprefs.gfx_vresolution;
#else
if (new_height << currprefs.gfx_vresolution < currprefs.gfx_monitor[0].gfx_size_win.height)
new_height = new_height << currprefs.gfx_vresolution;
else
new_height = currprefs.gfx_monitor[0].gfx_size_win.height;
#endif

const int x = get_visible_left_border() > 0 ? get_visible_left_border() : 0;
const int y = vstrt - minfirstline << currprefs.gfx_vresolution > 0 ? vstrt - minfirstline << currprefs.gfx_vresolution : 0;
Expand Down

0 comments on commit 26253a6

Please sign in to comment.