Mercurial > hg > Applications > TreeVNC
changeset 312:b4718b491ae9
fix change frame this size
author | oc |
---|---|
date | Fri, 23 Jan 2015 18:49:28 +0900 |
parents | e6a5f3100b6a |
children | 45aa7825ef6f 86c5d374eb52 |
files | src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java |
diffstat | 1 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Fri Jan 23 18:20:54 2015 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Fri Jan 23 18:49:28 2015 +0900 @@ -924,13 +924,7 @@ context.sendMessage(new RequestSingleDisplayWidth()); } double scalePercent = uiSettings.fitScreen(thisScreenWidth, thisScreenHeight, singleWidth, singleHeight); - /* - Dimension scaleSize = new Dimension(); - scaleSize.setSize(thisScreenWidth * scaleFactor, thisScreenHeight * scaleFactor); - frame.setSize(scaleSize); - */ -// frame.setSize(thisScreenWidth, thisScreenHeight); - uiSettings.setScalePercent(scalePercent); + frame.setSize(thisScreenWidth, thisScreenHeight); } }); kbdButtons.add(fitScreenButton);