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

Print this page

        

*** 963,974 **** return new ToolkitImage(producer); } @Override public Image createImage(int w, int h) { ! // TODO: accelerated image ! return getGraphicsConfiguration().createCompatibleImage(w, h); } @Override public VolatileImage createVolatileImage(int w, int h) { // TODO: is it a right/complete implementation? --- 963,974 ---- return new ToolkitImage(producer); } @Override public Image createImage(int w, int 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?