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

Print this page

        

*** 82,120 **** public Object getDestination() { return peer; } - public void enterFullScreenMode(final long nsWindowPtr) { - 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); - } - // ---------------------------------------------------------------------- // PAINTING METHODS // ---------------------------------------------------------------------- public void drawImageOnPeer(VolatileImage xBackBuffer, int x1, int y1, int x2, int y2) { --- 82,91 ----