From 41e05382b893325a8cc8780e01d4bf43b87d8bee Mon Sep 17 00:00:00 2001 From: glx Date: Thu, 9 Aug 2007 20:59:36 +0000 Subject: (svn r10835) -Fix [FS#998] (r10399): don't try to minimise or restore the window when closing openttd --- src/video/win32_v.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp index 02ad4a2d4..e945ba680 100644 --- a/src/video/win32_v.cpp +++ b/src/video/win32_v.cpp @@ -621,6 +621,9 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP #if !defined(WINCE) case WM_ACTIVATE: { + /* Don't do anything if we are closing openttd */ + if (_exit_game) break; + bool active = (LOWORD(wParam) != WA_INACTIVE); bool minimized = (HIWORD(wParam) != 0); if (_wnd.fullscreen) { -- cgit v1.2.3-70-g09d2