mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r10835) -Fix [FS#998] (r10399): don't try to minimise or restore the window when closing openttd
This commit is contained in:
parent
b9370f0247
commit
db65f0ea8d
@ -621,6 +621,9 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
|
|||||||
|
|
||||||
#if !defined(WINCE)
|
#if !defined(WINCE)
|
||||||
case WM_ACTIVATE: {
|
case WM_ACTIVATE: {
|
||||||
|
/* Don't do anything if we are closing openttd */
|
||||||
|
if (_exit_game) break;
|
||||||
|
|
||||||
bool active = (LOWORD(wParam) != WA_INACTIVE);
|
bool active = (LOWORD(wParam) != WA_INACTIVE);
|
||||||
bool minimized = (HIWORD(wParam) != 0);
|
bool minimized = (HIWORD(wParam) != 0);
|
||||||
if (_wnd.fullscreen) {
|
if (_wnd.fullscreen) {
|
||||||
|
Loading…
Reference in New Issue
Block a user