mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-31 03:12:41 +00:00
(svn r10848) [0.5] -Fix (r10841): 'mixed declaration and code' warning
This commit is contained in:
parent
f167d9bc50
commit
4b6e53b31c
@ -619,11 +619,12 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
|
||||
|
||||
#if !defined(WINCE)
|
||||
case WM_ACTIVATE: {
|
||||
bool active = (LOWORD(wParam) != WA_INACTIVE);
|
||||
bool minimized = (HIWORD(wParam) != 0);
|
||||
|
||||
/* 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) {
|
||||
if (active && minimized) {
|
||||
/* Restore the game window */
|
||||
|
Loading…
Reference in New Issue
Block a user