]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Different monitor check fixed (default monitor can be same as monitor with id>0)
authorToni Wilen <twilen@winuae.net>
Sat, 21 Oct 2023 15:44:39 +0000 (18:44 +0300)
committerToni Wilen <twilen@winuae.net>
Sat, 21 Oct 2023 15:44:39 +0000 (18:44 +0300)
od-win32/win32gfx.cpp

index dd9177e4b5d98444e69c71afbad03966af7c090e..5dcc1a798e406ffb61286f0536665aaf47d4f2be 100644 (file)
@@ -3010,11 +3010,12 @@ void gfx_set_picasso_state(int monid, int on)
                if (_tcscmp(newf->gfx_filtermask[i], oldf->gfx_filtermask[i]))
                        mode = -1;
        }
+       bool differentmonitor = getdisplay(&currprefs, newmode->gfx_display) != getdisplay(&currprefs, oldmode->gfx_display);
        // if screen parameter changes, need to reopen window
        if (newmode->gfx_fullscreen != oldmode->gfx_fullscreen ||
                (newmode->gfx_fullscreen && (
                        newmode->gfx_backbuffers != oldmode->gfx_backbuffers ||
-                       newmode->gfx_display != oldmode->gfx_display ||
+                       differentmonitor ||
                        newmode->gfx_refreshrate != oldmode->gfx_refreshrate ||
                        newmode->gfx_strobo != oldmode->gfx_strobo ||
                        newmode->gfx_vflip != oldmode->gfx_vflip ||