mirror of
https://github.com/LIV2/amiberry.git
synced 2025-12-05 22:22:44 +00:00
Fixed #929: DMX auto-height would not increase height size dynamically, only reduce it
This commit is contained in:
parent
ad41dea8c1
commit
26253a6b0b
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user