From c656633bea39d2002330eddee54522c8db542785 Mon Sep 17 00:00:00 2001 From: Michael Lutz Date: Mon, 1 Mar 2021 23:19:54 +0100 Subject: [PATCH] Fix #8775: [Win32] Don't create the main window when alt-tabbing back into fullscreen. --- src/video/win32_v.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp index 8200be887b..ae1f5aafad 100644 --- a/src/video/win32_v.cpp +++ b/src/video/win32_v.cpp @@ -137,7 +137,7 @@ bool VideoDriver_Win32Base::MakeWindow(bool full_screen) _fullscreen = full_screen; /* recreate window? */ - if ((full_screen || this->fullscreen) && this->main_wnd) { + if ((full_screen != this->fullscreen) && this->main_wnd) { DestroyWindow(this->main_wnd); this->main_wnd = 0; }