diff --git a/src/java/org/lwjgl/opengl/MacOSXDisplay.java b/src/java/org/lwjgl/opengl/MacOSXDisplay.java index fe9e9a82..9fde3262 100644 --- a/src/java/org/lwjgl/opengl/MacOSXDisplay.java +++ b/src/java/org/lwjgl/opengl/MacOSXDisplay.java @@ -114,7 +114,6 @@ final class MacOSXDisplay implements DisplayImplementation { boolean fullscreen = Display.isFullscreen(); boolean resizable = Display.isResizable(); - hideUI(fullscreen); close_requested = false; DrawableGL gl_drawable = (DrawableGL)Display.getDrawable(); @@ -147,7 +146,6 @@ final class MacOSXDisplay implements DisplayImplementation { public void destroyWindow() { nDestroyWindow(window); - hideUI(false); } public int getGammaRampLength() { @@ -296,18 +294,6 @@ final class MacOSXDisplay implements DisplayImplementation { } } - /** - * This is an interface to the native Cocoa function, - * NSWindow:setStyleMask. It is used to set the window's border to - * undecorated. - */ - private void hideUI(boolean hide) { - //if (!LWJGLUtil.isMacOSXEqualsOrBetterThan(10, 4)) - nHideUI(window, hide); - } - - private native void nHideUI(ByteBuffer window_handle, boolean hide); - public void reshape(int x, int y, int width, int height) { //if (native_mode) { // nResizeWindow(window, x, y, width, height); diff --git a/src/native/macosx/org_lwjgl_opengl_Display.m b/src/native/macosx/org_lwjgl_opengl_Display.m index 14e83b37..9081fcc6 100644 --- a/src/native/macosx/org_lwjgl_opengl_Display.m +++ b/src/native/macosx/org_lwjgl_opengl_Display.m @@ -539,31 +539,3 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_MacOSXDisplay_setGammaRamp(JNIEnv * throwException(env, "Could not set display gamma"); } } - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_MacOSXDisplay_nHideUI(JNIEnv *env, jobject this, jobject window_handle, jboolean hide) { - if (window_handle == NULL) { - printf("Window handle is null\n"); - return; - } - - //MacOSXWindowInfo *window_info = (MacOSXWindowInfo *)(*env)->GetDirectBufferAddress(env, window_handle); - //if(floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_5) { - /*NSApplicationPresentationOptions options = NSApplicationPresentationDefault; - if (hide == JNI_TRUE) { - options = NSApplicationPresentationFullScreen; // this requires OS X 10.7+ to compile - options |= NSApplicationPresentationHideDock; - options |= NSApplicationPresentationHideMenuBar; - } - printf("Setting options\n"); - window_info->window_options = options; - if (window_info->window != nil) { - [[NSApplication sharedApplication] setPresentationOptions:options]; - }*/ - //} else { - /*if (hide == JNI_TRUE) { - SetSystemUIMode(kUIModeContentSuppressed, 0); - } else { - SetSystemUIMode(kUIModeNormal, 0); - }*/ - //} -}