From: Toni Wilen Date: Tue, 19 Mar 2024 16:59:36 +0000 (+0200) Subject: Check if mode switch is needed before updating graphics parameters X-Git-Tag: 5300~78 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=c579faeee3771c1fd1fcbe0f2da674c86eeba122;p=francis%2Fwinuae.git Check if mode switch is needed before updating graphics parameters --- diff --git a/od-win32/win32gfx.cpp b/od-win32/win32gfx.cpp index 2d47b3b3..39388a80 100644 --- a/od-win32/win32gfx.cpp +++ b/od-win32/win32gfx.cpp @@ -3077,9 +3077,9 @@ void gfx_set_picasso_modeinfo(int monid, RGBFTYPE rgbfmt) if (!mon->screen_is_picasso) return; gfx_set_picasso_colors(monid, rgbfmt); + need = modeswitchneeded(mon, &mon->currentmode); update_gfxparams(mon); updatemodes(mon); - need = modeswitchneeded(mon, &mon->currentmode); if (need > 0) { open_screen(mon); } else if (need < 0) {