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

Print this page

        

*** 24,34 **** */ package sun.lwawt.macosx; import java.awt.*; - import java.awt.event.*; import java.awt.image.VolatileImage; import sun.awt.CGraphicsConfig; import sun.lwawt.LWWindowPeer; import sun.lwawt.macosx.event.NSEvent; --- 24,33 ----
*** 200,213 **** private void deliverKeyEvent(NSEvent event) { responder.handleKeyEvent(event.getType(), event.getModifierFlags(), event.getCharactersIgnoringModifiers(), event.getKeyCode(), true); } private void deliverWindowDidExposeEvent() { ! Rectangle r = peer.getBounds(); ! peer.notifyExpose(0, 0, r.width, r.height); ! } ! ! private void deliverWindowDidExposeEvent(float x, float y, float w, float h) { ! peer.notifyExpose((int)x, (int)y, (int)w, (int)h); } } --- 199,211 ---- private void deliverKeyEvent(NSEvent event) { responder.handleKeyEvent(event.getType(), event.getModifierFlags(), event.getCharactersIgnoringModifiers(), event.getKeyCode(), true); } + /** + * Called by the native delegate in layer backed view mode or in the simple + * NSView mode. See NSView.drawRect(). + */ private void deliverWindowDidExposeEvent() { ! peer.notifyExpose(peer.getSize()); } }