]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Use invalues if outvalues are not set.
authorToni Wilen <twilen@winuae.net>
Sat, 2 May 2026 14:07:18 +0000 (17:07 +0300)
committerToni Wilen <twilen@winuae.net>
Sat, 2 May 2026 14:07:18 +0000 (17:07 +0300)
od-win32/win32_scaler.cpp

index 6c737c0c90780133be3a1f030e3d0b156e00f4b8..a593b2f0413a7592cae53fce8e83d4d5fbdd33cd 100644 (file)
@@ -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;
        }