From 3f552684e51dca30843b86c98df0192f45c34b62 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 8 Mar 2026 20:42:49 +0200 Subject: [PATCH] Small cleanup --- od-win32/win32gfx.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.47.3