mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-21 03:16:32 +01:00
Fix #8775: [Win32] Don't create the main window when alt-tabbing back into fullscreen.
This commit is contained in:
parent
b7a44983b4
commit
c656633bea
@ -137,7 +137,7 @@ bool VideoDriver_Win32Base::MakeWindow(bool full_screen)
|
|||||||
_fullscreen = full_screen;
|
_fullscreen = full_screen;
|
||||||
|
|
||||||
/* recreate window? */
|
/* recreate window? */
|
||||||
if ((full_screen || this->fullscreen) && this->main_wnd) {
|
if ((full_screen != this->fullscreen) && this->main_wnd) {
|
||||||
DestroyWindow(this->main_wnd);
|
DestroyWindow(this->main_wnd);
|
||||||
this->main_wnd = 0;
|
this->main_wnd = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user