From: Toni Wilen Date: Sat, 2 May 2026 14:07:18 +0000 (+0300) Subject: Use invalues if outvalues are not set. X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=99b9544f4a09367ceb7bf73b1532d77286e93417;p=francis%2Fwinuae.git Use invalues if outvalues are not set. --- diff --git a/od-win32/win32_scaler.cpp b/od-win32/win32_scaler.cpp index 6c737c0c..a593b2f0 100644 --- a/od-win32/win32_scaler.cpp +++ b/od-win32/win32_scaler.cpp @@ -65,7 +65,7 @@ static bool getmanualpos(int monid, int *cxp, int *cyp, int *cwp, int *chp) } } #endif - cw = avidinfo->outbuffer->outwidth << (RES_MAX - currprefs.gfx_resolution); + cw = (avidinfo->outbuffer->outwidth ? avidinfo->outbuffer->outwidth : avidinfo->outbuffer->inwidth) << (RES_MAX - currprefs.gfx_resolution); } else { cw = v; } @@ -83,7 +83,7 @@ static bool getmanualpos(int monid, int *cxp, int *cyp, int *cwp, int *chp) ch = native ? (current_linear_vpos - minfirstline) << VRES_MAX : avidinfo->outbuffer->outheight; } #endif - ch = avidinfo->outbuffer->outheight << (VRES_MAX - currprefs.gfx_vresolution); + ch = (avidinfo->outbuffer->outheight ? avidinfo->outbuffer->outheight : avidinfo->outbuffer->inheight) << (VRES_MAX - currprefs.gfx_vresolution); } else { ch = v; }