diff options
author | Sven Gothel <[email protected]> | 2011-10-20 21:32:15 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-10-20 21:32:15 +0200 |
commit | 60aed644ff620b3d6a93f7b86d71e2c02109b9ab (patch) | |
tree | 4acfaf45f360f25eac363e060b2938a3be2da360 /src | |
parent | 2e66f5345d22d8cbd5cc8be9a1db1073cb5ffd3c (diff) |
Remove warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/newt/native/MacWindow.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/newt/native/MacWindow.m b/src/newt/native/MacWindow.m index b59429ffd..eaad388c3 100644 --- a/src/newt/native/MacWindow.m +++ b/src/newt/native/MacWindow.m @@ -69,7 +69,9 @@ static void setFrameTopLeftPoint(NSWindow* pWin, NewtMacWindow* mWin, jint x, ji static NewtView * changeContentView(JNIEnv *env, jobject javaWindowObject, NSWindow *pwin, NSView *pview, NewtMacWindow *win, NewtView *newView) { NSView* oldNSView = [win contentView]; NewtView* oldView = NULL; +#ifdef VERBOSE_ON int dbgIdx = 1; +#endif DBG_PRINT( "changeContentView.%d win %p, view %p, parent[win %p, view %p]\n", dbgIdx++, win, newView, pwin, pview); @@ -325,7 +327,9 @@ JNIEXPORT jlong JNICALL Java_jogamp_newt_driver_macosx_MacWindow_createWindow0 } DBG_PRINT( "createWindow0 - is visible.1: %d\n", [myWindow isVisible]); +#ifdef VERBOSE_ON int dbgIdx = 1; +#endif if(opaque) { [myWindow setOpaque: YES]; DBG_PRINT( "createWindow0.%d\n", dbgIdx++); @@ -404,7 +408,7 @@ JNIEXPORT void JNICALL Java_jogamp_newt_driver_macosx_MacWindow_close0 (JNIEnv *env, jobject unused, jlong window) { NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; - NSWindow* mWin = (NSWindow*) ((intptr_t) window); + NewtMacWindow* mWin = (NewtMacWindow*) ((intptr_t) window); NSView* mView = [mWin contentView]; NSWindow* pWin = [mWin parentWindow]; DBG_PRINT( "*************** windowClose.0: %p (view %p, parent %p)\n", mWin, mView, pWin); |