Hi, Alexander.
I assume that the code in SG2D.getTransform/setTransform is the same as was before the fix of 8000629. Code in SG2D.getDefaultTransform can be simplified, id do not think that GraphicsConfiguration.getDefaultTransform. and SG2D.getDeviceConfiguration can return null for NullSurfaceData only. The test should check that default transform of graphics configuration(all screens should be checked) is the same as a transform of the Graphics. The method CGraphicsConfig.getDefaultTransform() can use getScaleInstance but it is up to you.

On 14.04.15 17:51, Alexander Scherbatiy wrote:
Hello,

Could you review the fix:
  bug: https://bugs.openjdk.java.net/browse/JDK-8069361
  webrev: http://cr.openjdk.java.net/~alexsch/8069361/webrev.00

SunGraphics2D.getDefaultTransform() now returns transform which includes GraphicsConfiguration default transform.

This can break a compatibility for applications which assumes that default Graphics2D transform is always identity and restore it as sg2d.setTransform(new AffineTransform()). However, this is not now true for HiDPI displays.

Thanks,
Alexandr.



--
Best regards, Sergey.

Reply via email to