summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-03-01 23:19:54 +0100
committerMichael Lutz <michi@icosahedron.de>2021-03-01 23:41:39 +0100
commitc656633bea39d2002330eddee54522c8db542785 (patch)
treef3812c275290a4ddf5b9ec553b008b578df50e77
parentb7a44983b432a85f99b5d82493c3396e5833d245 (diff)
downloadopenttd-c656633bea39d2002330eddee54522c8db542785.tar.xz
Fix #8775: [Win32] Don't create the main window when alt-tabbing back into fullscreen.
-rw-r--r--src/video/win32_v.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp
index 8200be887..ae1f5aafa 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;
}