7154088: [macosx] Regression: Component.createImage do not inherits component attributes
Reviewed-by: art, kizune
This commit is contained in:
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user