From d7ba837de91bc9551b47801edfb1109e5a194c45 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 26 Jun 2006 14:28:52 +0000 Subject: [PATCH] Windows: Moved isUndecorated from global to local variable --- src/native/win32/org_lwjgl_opengl_Display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/native/win32/org_lwjgl_opengl_Display.c b/src/native/win32/org_lwjgl_opengl_Display.c index 1e22a225..d330091d 100644 --- a/src/native/win32/org_lwjgl_opengl_Display.c +++ b/src/native/win32/org_lwjgl_opengl_Display.c @@ -54,7 +54,6 @@ static HDC display_hdc = NULL; // Device context static bool isFullScreen = false; // Whether we're fullscreen or not static bool isMinimized = false; // Whether we're minimized or not static bool isFocused = false; // whether we're focused or not -static bool isUndecorated = false; // Whether we're undecorated or not static bool did_maximize = false; // A flag to tell when a window // has recovered from minimized @@ -248,6 +247,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Win32Display_nCreateWindow(JNIEnv * int width = (*env)->GetIntField(env, mode, fid_width); int height = (*env)->GetIntField(env, mode, fid_height); BOOL result; + bool isUndecorated; // Whether we're undecorated or not static bool oneShotInitialised = false; if (!oneShotInitialised) { if (!registerWindow(lwjglWindowProc, WINDOWCLASSNAME)) {