From 26253a6b0b09aeb12e72842876035eaad3e88100 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Sun, 10 Apr 2022 20:34:48 +0200 Subject: [PATCH] Fixed #929: DMX auto-height would not increase height size dynamically, only reduce it --- src/osdep/amiberry_gfx.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osdep/amiberry_gfx.cpp b/src/osdep/amiberry_gfx.cpp index 3fad512b2..d1fc57650 100644 --- a/src/osdep/amiberry_gfx.cpp +++ b/src/osdep/amiberry_gfx.cpp @@ -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;