diff --git a/src/macosx/classes/sun/lwawt/LWRepaintArea.java b/src/macosx/classes/sun/lwawt/LWRepaintArea.java index e29009dcd7925ff99f316a40c66dab52b79306fa..54cbd332db496aa3faf0233f03ad5f06d18bc88a 100644 --- a/src/macosx/classes/sun/lwawt/LWRepaintArea.java +++ b/src/macosx/classes/sun/lwawt/LWRepaintArea.java @@ -39,12 +39,8 @@ final class LWRepaintArea extends RepaintArea { @Override protected void updateComponent(final Component comp, final Graphics g) { if (comp != null) { - final LWComponentPeer peer = (LWComponentPeer) comp.getPeer(); - if (peer != null) { - peer.paintPeer(g); - } super.updateComponent(comp, g); - flushBuffers(peer); + flushBuffers((LWComponentPeer) comp.getPeer()); } }