From 99b9544f4a09367ceb7bf73b1532d77286e93417 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 2 May 2026 17:07:18 +0300 Subject: [PATCH] Use invalues if outvalues are not set. --- od-win32/win32_scaler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.47.3