From 77474af3b20eb4afb6ea26e454937c8fc6f009fc Mon Sep 17 00:00:00 2001 From: Spoike <acceptthis@users.sourceforge.net> Date: Thu, 1 Dec 2005 01:24:07 +0000 Subject: [PATCH] Stops a recursive error when the MessageBox function tells us that it's appeared, over and over and over again, causing more MessageBoxes... Grr. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1647 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_vidnt.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/gl/gl_vidnt.c b/engine/gl/gl_vidnt.c index 674b33e7d..8579c2492 100644 --- a/engine/gl/gl_vidnt.c +++ b/engine/gl/gl_vidnt.c @@ -1292,6 +1292,12 @@ LONG WINAPI GLMainWndProc ( break; case WM_ACTIVATE: + if (fActive == LOWORD(wParam)) + if (fMinimized == (BOOL) HIWORD(wParam)) + //so, urm, tell me microsoft, what changed? + break; + + fActive = LOWORD(wParam); fMinimized = (BOOL) HIWORD(wParam); GLAppActivate(!(fActive == WA_INACTIVE), fMinimized);