changeset 5348:416b3a498e71

7154088: [macosx] Regression: Component.createImage do not inherits component attributes Reviewed-by: art, kizune
author bae
date Mon, 21 May 2012 14:53:51 +0400
parents 7c4eed4b6c19
children 1b90a0113359 a2d12ca36eb3
files src/macosx/classes/sun/lwawt/LWComponentPeer.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/macosx/classes/sun/lwawt/LWComponentPeer.java	Mon May 21 14:04:46 2012 +0400
+++ b/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