Skip to content

Commit

Permalink
SkiaLayer.windowHandle on MacOS now returns a pointer to NSWindow.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rsedaikin committed Mar 25, 2021
1 parent adbce3a commit b3d0e80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions skiko/src/jvmMain/objectiveC/macos/Drawlayer.mm
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ JNIEXPORT void JNICALL Java_org_jetbrains_skiko_HardwareLayer_nativeDispose(JNIE

JNIEXPORT jlong JNICALL Java_org_jetbrains_skiko_HardwareLayer_getWindowHandle(JNIEnv *env, jobject canvas)
{
LayerHandler *layer = findByObject(env, canvas);
if (layer != NULL)
{
return (jlong)[layer window];
}
return (jlong)kNullWindowHandle;
}

Expand Down

0 comments on commit b3d0e80

Please sign in to comment.