< prev index next >
src/java.desktop/macosx/classes/sun/awt/CGraphicsConfig.java
Print this page
*** 70,80 ****
throw new UnsupportedOperationException("not implemented");
}
@Override
public AffineTransform getDefaultTransform() {
! return new AffineTransform();
}
@Override
public CGraphicsDevice getDevice() {
return device;
--- 70,81 ----
throw new UnsupportedOperationException("not implemented");
}
@Override
public AffineTransform getDefaultTransform() {
! float scaleFactor = device.getScaleFactor();
! return new AffineTransform(scaleFactor, 0, 0, scaleFactor, 0, 0);
}
@Override
public CGraphicsDevice getDevice() {
return device;
< prev index next >