src/macosx/classes/sun/lwawt/LWComponentPeer.java

Print this page

        

@@ -938,12 +938,12 @@
         return new ToolkitImage(producer);
     }
 
     @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
     public VolatileImage createVolatileImage(int w, int h) {
         // TODO: is it a right/complete implementation?