From c579faeee3771c1fd1fcbe0f2da674c86eeba122 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Tue, 19 Mar 2024 18:59:36 +0200 Subject: [PATCH] Check if mode switch is needed before updating graphics parameters --- od-win32/win32gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.3