modules/web/src/main/java/com/sun/javafx/webkit/prism/PrismGraphicsManager.java

Print this page

        

@@ -43,13 +43,14 @@
     private final static BaseTransform pixelScaleTransform;
 
     static {
         float ps = 1f;
         for (Screen s : Screen.getScreens()) {
-            ps = Math.max(s.getRenderScale(), ps);
+            ps = Math.max(s.getRecommendedOutputScaleX(), ps);
+            ps = Math.max(s.getRecommendedOutputScaleY(), ps);
         }
-        highestPixelScale = ps;
+        highestPixelScale = (float) Math.ceil(ps);
         pixelScaleTransform = BaseTransform.getScaleInstance(ps, ps);
     }
 
     static BaseTransform getPixelScaleTransform() {
         return pixelScaleTransform;