7154088: [macosx] Regression: Component.createImage do not inherits component attributes

Reviewed-by: art, kizune
This commit is contained in:
Andrew Brygin 2012-05-21 14:53:51 +04:00
parent 9ea4ab4133
commit ecf06b3459

@ -940,8 +940,8 @@ public abstract class LWComponentPeer<T extends Component, D extends JComponent>
@Override
public Image createImage(int w, int h) {
// TODO: accelerated image
return getGraphicsConfiguration().createCompatibleImage(w, h);
CGraphicsConfig gc = (CGraphicsConfig)getGraphicsConfiguration();
return gc.createAcceleratedImage(getTarget(), w, h);
}
@Override