Mercurial > hg > Members > riono > TreeVNC_ja_comment
comparison src/viewer_swing/java/com/glavsoft/viewer/UiSettings.java @ 438:e89f2a8fc7f4
use scale in fitScreen
frame size change in fitScreen
author | Nozomi |
---|---|
date | Sun, 12 Jun 2016 19:48:42 +0900 |
parents | eba44a31e868 |
children | 9a938b714c6b |
comparison
equal
deleted
inserted
replaced
437:345c92f0b67d | 438:e89f2a8fc7f4 |
---|---|
201 double doubleThisWidth = (double) thisScreenWidth; | 201 double doubleThisWidth = (double) thisScreenWidth; |
202 double doubleThisHeight = (double) thisScreenHeight; | 202 double doubleThisHeight = (double) thisScreenHeight; |
203 double widthScale = (doubleThisWidth/singleWidth); | 203 double widthScale = (doubleThisWidth/singleWidth); |
204 double heightScale = (doubleThisHeight/singleHeight); | 204 double heightScale = (doubleThisHeight/singleHeight); |
205 double defaultScaleFactor = 100.0; | 205 double defaultScaleFactor = 100.0; |
206 double scaleFactor = 100.0; | 206 double scaleFactor; |
207 | 207 |
208 if (widthScale > heightScale) { | 208 if (widthScale > heightScale) { |
209 scaleFactor = defaultScaleFactor * widthScale; | 209 scaleFactor = defaultScaleFactor * widthScale; |
210 } else { | 210 } else { |
211 scaleFactor = defaultScaleFactor * heightScale; | 211 scaleFactor = defaultScaleFactor * heightScale; |