From 2c811ac289b201588e7388e0561f3a238da09db1 Mon Sep 17 00:00:00 2001 From: kappa1 Date: Thu, 1 Nov 2012 22:21:23 +0000 Subject: [PATCH] Updated macosx_ant build.xml, removed PPC support, bumped the minimum OS X SDK for 32/64bit native to SDK 10.5. Commented out some code in Display.m that required SDK 10.7+, namely NSApplicationPresentationFullScreen, etc --- platform_build/macosx_ant/build.xml | 18 +++++++++--------- src/native/macosx/org_lwjgl_opengl_Display.m | 9 +++++---- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/platform_build/macosx_ant/build.xml b/platform_build/macosx_ant/build.xml index b1696a34..399947c8 100644 --- a/platform_build/macosx_ant/build.xml +++ b/platform_build/macosx_ant/build.xml @@ -3,7 +3,7 @@ - + @@ -12,7 +12,7 @@ - + @@ -46,21 +46,21 @@ - + - + - + @@ -72,12 +72,12 @@ - + @@ -95,7 +95,7 @@ - + diff --git a/src/native/macosx/org_lwjgl_opengl_Display.m b/src/native/macosx/org_lwjgl_opengl_Display.m index 13955657..058ce4c8 100644 --- a/src/native/macosx/org_lwjgl_opengl_Display.m +++ b/src/native/macosx/org_lwjgl_opengl_Display.m @@ -315,7 +315,7 @@ static NSOpenGLPixelFormat *default_format = nil; } - (void)scrollWheel:(NSEvent *)event { - JNIEnv *env = attachCurrentThread(); + /*JNIEnv *env = attachCurrentThread(); if (env == nil || event == nil || _parent == nil) { return; } @@ -328,6 +328,7 @@ static NSOpenGLPixelFormat *default_format = nil; jmethodID mousemove = (*env)->GetMethodID(env, mouse_class, "mouseMoved", "(FFFFFJ)V"); NSPoint loc = [self convertPoint:[event locationInWindow] toView:self]; (*env)->CallVoidMethod(env, _parent->jmouse, mousemove, loc.x, loc.y, [event deltaX], [event deltaY], dz, time); + */ } - (void)viewDidMoveToWindow @@ -492,9 +493,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_MacOSXDisplay_nHideUI(JNIEnv *env, MacOSXWindowInfo *window_info = (MacOSXWindowInfo *)(*env)->GetDirectBufferAddress(env, window_handle); if(floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_5) { - NSApplicationPresentationOptions options = NSApplicationPresentationDefault; + /*NSApplicationPresentationOptions options = NSApplicationPresentationDefault; if (hide == JNI_TRUE) { - options = NSApplicationPresentationFullScreen; + options = NSApplicationPresentationFullScreen; // this requires OS X 10.7+ to compile options |= NSApplicationPresentationHideDock; options |= NSApplicationPresentationHideMenuBar; } @@ -502,7 +503,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_MacOSXDisplay_nHideUI(JNIEnv *env, window_info->window_options = options; if (window_info->window != nil) { [[NSApplication sharedApplication] setPresentationOptions:options]; - } + }*/ } else { if (hide == JNI_TRUE) { SetSystemUIMode(kUIModeContentSuppressed, 0);