< prev index next >

src/java.desktop/windows/classes/sun/awt/Win32GraphicsConfig.java

Print this page

        

@@ -104,11 +104,11 @@
     }
 
     /**
      * Return the graphics device associated with this configuration.
      */
-    public GraphicsDevice getDevice() {
+    public Win32GraphicsDevice getDevice() {
         return screen;
     }
 
     /**
      * Return the PixelFormatIndex this GraphicsConfig uses

@@ -180,11 +180,13 @@
      * the device, with X coordinates
      * increasing to the right and Y coordinates increasing downwards.
      * For image buffers, this Transform will be the Identity transform.
      */
     public AffineTransform getDefaultTransform() {
-        return new AffineTransform();
+        double scaleX = screen.getDefaultScaleX();
+        double scaleY = screen.getDefaultScaleY();
+        return AffineTransform.getScaleInstance(scaleX, scaleY);
     }
 
     /**
      *
      * Returns a Transform that can be composed with the default Transform
< prev index next >