From 4a217ea013fb98915ea1aff6208cdf651a3eb15e Mon Sep 17 00:00:00 2001 From: Lily Date: Mon, 23 Dec 2024 16:18:31 +0300 Subject: [PATCH] Update NativeWindow.hx --- source/lime/_internal/backend/native/NativeWindow.hx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/lime/_internal/backend/native/NativeWindow.hx b/source/lime/_internal/backend/native/NativeWindow.hx index 960391cc..4d409f53 100644 --- a/source/lime/_internal/backend/native/NativeWindow.hx +++ b/source/lime/_internal/backend/native/NativeWindow.hx @@ -305,7 +305,7 @@ class NativeWindow { if (handle != null) { - #if (!macro && lime_cffi) + #if (!macro && lime_cffi && lime >= "8.1.0") return NativeCFFI.lime_window_get_opacity(handle); #end } @@ -467,7 +467,7 @@ class NativeWindow { if (handle != null) { - #if (!macro && lime_cffi) + #if (!macro && lime_cffi && lime >= "8.1.0") NativeCFFI.lime_window_set_minimum_size(handle, width, height); #end } @@ -477,7 +477,7 @@ class NativeWindow { if (handle != null) { - #if (!macro && lime_cffi) + #if (!macro && lime_cffi && lime >= "8.1.0") NativeCFFI.lime_window_set_maximum_size(handle, width, height); #end } @@ -666,7 +666,7 @@ class NativeWindow { if (handle != null) { - #if (!macro && lime_cffi) + #if (!macro && lime_cffi && lime >= "8.1.0") NativeCFFI.lime_window_set_opacity(handle, value); #end } @@ -705,7 +705,7 @@ class NativeWindow { if (handle != null) { - #if (!macro && lime_cffi) + #if (!macro && lime_cffi && lime >= "8.1.0") NativeCFFI.lime_window_set_visible(handle, value); #end } @@ -757,4 +757,4 @@ class NativeWindow var WINDOW_FLAG_MAXIMIZED = 0x00004000; var WINDOW_FLAG_ALWAYS_ON_TOP = 0x00008000; var WINDOW_FLAG_COLOR_DEPTH_32_BIT = 0x00010000; -} \ No newline at end of file +}