|
From: Elias N. <eli...@us...> - 2005-02-02 13:17:26
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25534/src/native/win32 Modified Files: org_lwjgl_opengl_Display.c Log Message: Win32: Fix isActive() and isVisible() Index: org_lwjgl_opengl_Display.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_opengl_Display.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- org_lwjgl_opengl_Display.c 2 Feb 2005 11:05:25 -0000 1.10 +++ org_lwjgl_opengl_Display.c 2 Feb 2005 13:16:50 -0000 1.11 @@ -289,7 +289,7 @@ static void appActivate(bool active) { static bool inAppActivate = false; - + isFocused = active; if (inAppActivate) { return; } @@ -318,8 +318,6 @@ int xPos; int yPos; int dwheel; - bool oldIsMinimized; - bool oldIsFocused; switch (msg) { // disable screen saver and monitor power down messages which wreak havoc case WM_SYSCOMMAND: @@ -338,8 +336,6 @@ } break; case WM_ACTIVATE: - // default action - //res = DefWindowProc(hWnd, msg, wParam, lParam); switch (wParam) { case WA_ACTIVE: case WA_CLICKACTIVE: @@ -350,6 +346,19 @@ break; } return 0L; + case WM_SIZE: + switch (wParam) { + case SIZE_RESTORED: + case SIZE_MAXIMIZED: +printf("BLAH************************** MAX\n"); + isMinimized = false; + break; + case SIZE_MINIMIZED: +printf("BLAH************************** MIN\n"); + isMinimized = true; + break; + } + return 0L; case WM_MOUSEMOVE: { xPos = GET_X_LPARAM(lParam); |