Commit 95f0eca3 authored by Nikolay Igotti's avatar Nikolay Igotti

More inout checks.

parent ba9fd1c7
......@@ -208,7 +208,7 @@ JNIEXPORT void JNICALL Java_org_jetbrains_skiko_redrawer_MetalRedrawer_resizeLay
JNIEXPORT void JNICALL Java_org_jetbrains_skiko_redrawer_MetalRedrawer_setContentScale(JNIEnv *env, jobject obj, jlong devicePtr, jfloat contentScale)
{
MetalDevice *device = (MetalDevice *) devicePtr;
if (device.layer.contentsScale == contentScale) {
if (!device || !device.layer || device.layer.contentsScale == contentScale) {
return;
}
[CATransaction begin];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment