< prev index next >
src/java.desktop/macosx/native/libawt_lwawt/awt/AWTSurfaceLayers.m
Print this page
@@ -106,11 +106,11 @@
[ThreadUtilities performOnMainThreadWaiting:YES block:^(){
CALayer *windowLayer = jlong_to_ptr(windowLayerPtr);
surfaceLayers = [[AWTSurfaceLayers alloc] initWithWindowLayer: windowLayer];
}];
-
+
JNF_COCOA_EXIT(env);
return ptr_to_jlong(surfaceLayers);
}
@@ -123,11 +123,11 @@
(JNIEnv *env, jclass clazz, jlong surfaceLayersPtr, jint x, jint y, jint width, jint height)
{
JNF_COCOA_ENTER(env);
AWTSurfaceLayers *surfaceLayers = OBJC(surfaceLayersPtr);
-
+
[ThreadUtilities performOnMainThreadWaiting:NO block:^(){
CGRect rect = CGRectMake(x, y, width, height);
[surfaceLayers setBounds: rect];
}];
< prev index next >