aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2009-01-14 22:15:13 +0000
committerKenneth Russel <[email protected]>2009-01-14 22:15:13 +0000
commit14e7d2637a4080d17b69d58185f48f57a69face7 (patch)
treeee4c96ea2ca89a9b5127e6666e380536e1c063da /src
parentfc588281b5b952ae182e436cee68ad49d1a43152 (diff)
Turned off debugging printfs
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1845 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src')
-rw-r--r--src/native/newt/MacWindow.m9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/native/newt/MacWindow.m b/src/native/newt/MacWindow.m
index 6dca9b93b..1e8555282 100644
--- a/src/native/newt/MacWindow.m
+++ b/src/native/newt/MacWindow.m
@@ -54,6 +54,7 @@ NSString* jstringToNSString(JNIEnv* env, jstring jstr)
static BOOL initializedMenuHeight = NO;
static CGFloat menuHeight = 0;
+static BOOL DEBUG = NO;
void setFrameTopLeftPoint(NSWindow* win, jint x, jint y)
{
@@ -66,12 +67,16 @@ void setFrameTopLeftPoint(NSWindow* win, jint x, jint y)
BOOL mustRelease = NO;
if (menu == nil) {
- printf("main menu was nil, trying services menu\n");
+ if (DEBUG) {
+ printf("main menu was nil, trying services menu\n");
+ }
menu = [NSApp servicesMenu];
}
if (menu == nil) {
- printf("services menu was nil, trying an empty menu instance\n");
+ if (DEBUG) {
+ printf("services menu was nil, trying an empty menu instance\n");
+ }
menu = [[[NSMenu alloc] initWithTitle: @"Foo"] retain];
mustRelease = YES;
}