mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30:28 +00:00
Fix: [Win32] Original window size was lost when tabbing in and out of fullscreen.
This commit is contained in:
parent
74aa934441
commit
b7a44983b4
@ -715,7 +715,9 @@ LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||
if (video_driver->fullscreen) {
|
||||
if (active && minimized) {
|
||||
/* Restore the game window */
|
||||
Dimension d = _bck_resolution; // Save current non-fullscreen window size as it will be overwritten by ShowWindow.
|
||||
ShowWindow(hwnd, SW_RESTORE);
|
||||
_bck_resolution = d;
|
||||
video_driver->MakeWindow(true);
|
||||
} else if (!active && !minimized) {
|
||||
/* Minimise the window and restore desktop */
|
||||
|
Loading…
Reference in New Issue
Block a user