Mercurial > hg > Applications > TreeVNC
diff src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java @ 442:614057b86122
presenter
author | one |
---|---|
date | Thu, 16 Jun 2016 21:50:53 +0900 |
parents | e89f2a8fc7f4 |
children | 967aa1f24ba4 |
line wrap: on
line diff
--- a/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Thu Jun 16 21:08:19 2016 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Thu Jun 16 21:50:53 2016 +0900 @@ -1020,13 +1020,15 @@ final int thatScreenY = presenter.getY(); final int thatScreenWidth = presenter.getFrameSizeWidth()*presenter.getRetinaScale(); final int thatScreenHeight = presenter.getFrameSizeHeight()*presenter.getRetinaScale(); - //System.out.println("thatScreenX:" + thatScreenX); - //System.out.println("thatScreenY:" + thatScreenY); - //System.out.println("thatScreenWidth:" + thatScreenWidth); - //System.out.println("thatScreenHeight:" + thatScreenHeight); - //System.out.println("getMaximum:" + scroller.getHorizontalScrollBar().getMaximum()); - //System.out.println("getMinmum:" + scroller.getHorizontalScrollBar().getMinimum()); - // uiSettings.zoomToFit(2*thatScreenWidth, 2*thatScreenHeight, thisScreenWidth, thisScreenHeight); + System.out.println("thatScreenX:" + thatScreenX); + System.out.println("thatScreenY:" + thatScreenY); + System.out.println("thisScreenWidth:" + thisScreenWidth); + System.out.println("thisScreenHeight:" + thisScreenHeight); + System.out.println("thatScreenWidth:" + thatScreenWidth); + System.out.println("thatScreenHeight:" + thatScreenHeight); + System.out.println("getMaximum:" + scroller.getHorizontalScrollBar().getMaximum()); + System.out.println("getMinmum:" + scroller.getHorizontalScrollBar().getMinimum()); + frame.setSize(thisScreenWidth, thisScreenHeight); uiSettings.fitScreen(thisScreenWidth, thisScreenHeight, thatScreenWidth, thatScreenHeight); // final Rectangle visible = new Rectangle(thatScreenX,thatScreenY,thatScreenWidth,thatScreenHeight);