]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Small cleanup
authorToni Wilen <twilen@winuae.net>
Sun, 8 Mar 2026 18:42:49 +0000 (20:42 +0200)
committerToni Wilen <twilen@winuae.net>
Sun, 8 Mar 2026 18:42:49 +0000 (20:42 +0200)
od-win32/win32gfx.cpp

index cc082a6059eb19782e3a1a4cdd18df6997a80163..6cc48607ca5b844e68fc9f801b717fde088f1ee8 100644 (file)
@@ -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;