src/macosx/classes/sun/lwawt/macosx/CPlatformView.java
Print this page
@@ -25,11 +25,10 @@
package sun.lwawt.macosx;
import java.awt.*;
import java.awt.geom.Rectangle2D;
-import java.awt.image.VolatileImage;
import sun.awt.CGraphicsConfig;
import sun.awt.CGraphicsEnvironment;
import sun.lwawt.LWWindowPeer;
import sun.lwawt.macosx.event.NSEvent;
@@ -87,33 +86,12 @@
public Object getDestination() {
return peer;
}
- public void enterFullScreenMode(final long nsWindowPtr) {
+ public void enterFullScreenMode() {
CWrapper.NSView.enterFullScreenMode(ptr);
-
- // REMIND: CGLSurfaceData expects top-level's size
- // and therefore we need to account insets before
- // recreating the surface data
- Insets insets = peer.getInsets();
-
- Rectangle screenBounds;
- final long screenPtr = CWrapper.NSWindow.screen(nsWindowPtr);
- try {
- screenBounds = CWrapper.NSScreen.frame(screenPtr).getBounds();
- } finally {
- CWrapper.NSObject.release(screenPtr);
- }
-
- // the move/size notification from the underlying system comes
- // but it contains a bounds smaller than the whole screen
- // and therefore we need to create the synthetic notifications
- peer.notifyReshape(screenBounds.x - insets.left,
- screenBounds.y - insets.bottom,
- screenBounds.width + insets.left + insets.right,
- screenBounds.height + insets.top + insets.bottom);
}
public void exitFullScreenMode() {
CWrapper.NSView.exitFullScreenMode(ptr);
}