From: Toni Wilen Date: Sun, 8 Mar 2026 18:42:49 +0000 (+0200) Subject: Small cleanup X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=3f552684e51dca30843b86c98df0192f45c34b62;p=francis%2Fwinuae.git Small cleanup --- diff --git a/od-win32/win32gfx.cpp b/od-win32/win32gfx.cpp index cc082a60..6cc48607 100644 --- a/od-win32/win32gfx.cpp +++ b/od-win32/win32gfx.cpp @@ -2787,7 +2787,8 @@ static int modeswitchneeded(struct AmigaMonitor *mon, struct winuae_currentmode /* fullscreen to fullscreen */ if (mon->screen_is_picasso) { if (state->Width < wc->current_width && state->Height < wc->current_height) { - if (currprefs.gf[GF_RTG].gfx_filter_autoscale == 1 || (currprefs.gf[GF_RTG].gfx_filter_autoscale == 2 && currprefs.win32_rtgallowscaling)) + int mode = currprefs.gf[GF_RTG].gfx_filter_autoscale; + if (mode == AUTOSCALE_STATIC_AUTO || (mode == AUTOSCALE_STATIC_NOMINAL && currprefs.win32_rtgallowscaling)) return 0; } if (state->Width != wc->current_width || @@ -2809,7 +2810,8 @@ static int modeswitchneeded(struct AmigaMonitor *mon, struct winuae_currentmode } else { /* fullwindow to fullwindow */ if (mon->screen_is_picasso) { - if (currprefs.gf[GF_RTG].gfx_filter_autoscale && ((wc->native_width > state->Width && wc->native_height >= state->Height) || (wc->native_height > state->Height && wc->native_width >= state->Width))) + int mode = currprefs.gf[GF_RTG].gfx_filter_autoscale; + if (mode && ((wc->native_width > state->Width && wc->native_height >= state->Height) || (wc->native_height > state->Height && wc->native_width >= state->Width))) return -1; if (currprefs.win32_rtgallowscaling && (state->Width != wc->native_width || state->Height != wc->native_height)) return -1;