modules/graphics/src/main/java/com/sun/javafx/tk/quantum/GlassAppletWindow.java

Print this page

        

@@ -120,14 +120,21 @@
         Application.invokeAndWait(() -> y.set(glassWindow.getY()));
         return y.get();
     }
 
     @Override
-    public float getUIScale() {
-        final AtomicReference<Float> uiScale = new AtomicReference<Float>(0.0f);
-        Application.invokeAndWait(() -> uiScale.set(glassWindow.getPlatformScale()));
-        return uiScale.get();
+    public float getPlatformScaleX() {
+        final AtomicReference<Float> pScale = new AtomicReference<Float>(0.0f);
+        Application.invokeAndWait(() -> pScale.set(glassWindow.getPlatformScaleX()));
+        return pScale.get();
+    }
+
+    @Override
+    public float getPlatformScaleY() {
+        final AtomicReference<Float> pScale = new AtomicReference<Float>(0.0f);
+        Application.invokeAndWait(() -> pScale.set(glassWindow.getPlatformScaleY()));
+        return pScale.get();
     }
 
     void dispose() {
         QuantumToolkit.runWithRenderLock(() -> {
             glassWindow.close();