remove unused code for hiding OS menubar and dock as its no longer

needed.
This commit is contained in:
kappaOne 2012-11-25 17:12:42 +00:00
parent 7b5d596c9b
commit c2159989f5
2 changed files with 0 additions and 42 deletions

View File

@ -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);

View File

@ -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);
}*/
//}
}