7154088: [macosx] Regression: Component.createImage do not inherits component attributes
Reviewed-by: art, kizune
--- a/jdk/src/macosx/classes/sun/lwawt/LWComponentPeer.java Mon May 21 14:04:46 2012 +0400
+++ b/jdk/src/macosx/classes/sun/lwawt/LWComponentPeer.java Mon May 21 14:53:51 2012 +0400
@@ -940,8 +940,8 @@
@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