mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-24 04:54:40 +02:00
7154088: [macosx] Regression: Component.createImage do not inherits component attributes
Reviewed-by: art, kizune
This commit is contained in:
parent
9ea4ab4133
commit
ecf06b3459
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue