src/macosx/native/sun/awt/CWrapper.m

Print this page

        

*** 395,429 **** JNF_COCOA_EXIT(env); } /* - * Class: sun_lwawt_macosx_CWrapper$NSWindow - * Method: screen - * Signature: (J)J - */ - JNIEXPORT jlong JNICALL - Java_sun_lwawt_macosx_CWrapper_00024NSWindow_screen - (JNIEnv *env, jclass cls, jlong windowPtr) - { - __block jlong screenPtr = 0L; - - JNF_COCOA_ENTER(env); - - AWTWindow *window = (AWTWindow *)jlong_to_ptr(windowPtr); - [ThreadUtilities performOnMainThreadWaiting:YES block:^(){ - const NSScreen *screen = [window screen]; - CFRetain(screen); // GC - screenPtr = ptr_to_jlong(screen); - }]; - - JNF_COCOA_EXIT(env); - - return screenPtr; - } - - /* * Method: miniaturize * Signature: (J)V */ JNIEXPORT void JNICALL Java_sun_lwawt_macosx_CWrapper_00024NSWindow_miniaturize --- 395,404 ----