diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-03-01 23:19:54 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-03-01 23:41:39 +0100 |
commit | c656633bea39d2002330eddee54522c8db542785 (patch) | |
tree | f3812c275290a4ddf5b9ec553b008b578df50e77 /src/video | |
parent | b7a44983b432a85f99b5d82493c3396e5833d245 (diff) | |
download | openttd-c656633bea39d2002330eddee54522c8db542785.tar.xz |
Fix #8775: [Win32] Don't create the main window when alt-tabbing back into fullscreen.
Diffstat (limited to 'src/video')
-rw-r--r-- | src/video/win32_v.cpp | 2 |
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; } |