From 20c2ec51ddf5572fb8c062bb40d4f7389e28c77b Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Fri, 24 Oct 2003 11:51:07 +0000 Subject: [PATCH] *** empty log message *** --- src/native/macosx/org_lwjgl_opengl_Window.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/native/macosx/org_lwjgl_opengl_Window.cpp b/src/native/macosx/org_lwjgl_opengl_Window.cpp index 703de18d..10f8e902 100644 --- a/src/native/macosx/org_lwjgl_opengl_Window.cpp +++ b/src/native/macosx/org_lwjgl_opengl_Window.cpp @@ -51,7 +51,7 @@ static bool vsync_enabled; static bool current_fullscreen; static void destroyMode(JNIEnv *env, jclass clazz) { - if (current_fullscreen); + if (!current_fullscreen); resetMode(env); } @@ -131,6 +131,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_nCreate(JNIEnv *env, jclass throwException(env, "Could not load gl function pointers"); return; } + FlushEventQueue(GetMainEventQueue()); } JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_nSetTitle(JNIEnv * env, jclass clazz, jstring title_obj) {