From 4b6e53b31c450030f95127907abc701adc82126a Mon Sep 17 00:00:00 2001 From: glx Date: Fri, 10 Aug 2007 19:06:01 +0000 Subject: [PATCH] (svn r10848) [0.5] -Fix (r10841): 'mixed declaration and code' warning --- video/win32_v.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/video/win32_v.c b/video/win32_v.c index 1b2f96e696..2c1702778c 100644 --- a/video/win32_v.c +++ b/video/win32_v.c @@ -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 */