changeset 5059:2e7136afdc8f

RT-32889: Wrong scale factor for child windows
author Alexander Zvegintsev
date Thu, 12 Sep 2013 17:24:38 +0400
parents 3712e86c7317
children 30d0ff6962c7
files modules/graphics/src/main/java/com/sun/prism/PresentableState.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/prism/PresentableState.java	Thu Sep 12 15:07:03 2013 +0400
+++ b/modules/graphics/src/main/java/com/sun/prism/PresentableState.java	Thu Sep 12 17:24:38 2013 +0400
@@ -283,6 +283,8 @@
                 // when null, most likely because of "In Browswer"
                 screenHeight = screen.getHeight();
                 screenScale = screen.getScale();
+            } else {
+                screenScale = 1.f;
             }
         } else {
             //TODO - should other variables be cleared?