modules/javafx.graphics/src/main/native-glass/mac/GlassWindow+Java.m

Print this page

        

@@ -67,10 +67,16 @@
         GET_MAIN_JENV;
         (*env)->CallVoidMethod(env, jWindow, jWindowNotifyMoveToAnotherScreen, createJavaScreen(env, newScreen));
     }
 }
 
+- (void)_sendJavaWindowNotifyScaleChanged:(CGFloat)newScale
+{
+    GET_MAIN_JENV;
+    (*env)->CallVoidMethod(env, jWindow, jWindowNotifyScaleChanged, 1.0f, 1.0f, newScale, newScale);
+}
+
 - (void)_sendJavaWindowMoveEventForFrame:(NSRect)frame
 {
     if (self->suppressWindowMoveEvent == NO)
     {
         self->lastReportedLocation = frame.origin;