< prev index next >

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

Print this page

        

*** 104,114 **** } /** * Return the graphics device associated with this configuration. */ ! public GraphicsDevice getDevice() { return screen; } /** * Return the PixelFormatIndex this GraphicsConfig uses --- 104,114 ---- } /** * Return the graphics device associated with this configuration. */ ! public Win32GraphicsDevice getDevice() { return screen; } /** * Return the PixelFormatIndex this GraphicsConfig uses
*** 180,190 **** * 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(); } /** * * Returns a Transform that can be composed with the default Transform --- 180,192 ---- * 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() { ! 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 >