Mercurial > hg > Applications > TreeVNC
diff src/viewer_swing/java/com/glavsoft/viewer/Viewer.java @ 457:effba48b76f3
Fix position
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 22 Jun 2016 19:52:32 +0900 |
parents | 34277b436cac |
children | 4ea47640942a |
line wrap: on
line diff
--- a/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java Wed Jun 22 19:11:37 2016 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java Wed Jun 22 19:52:32 2016 +0900 @@ -507,8 +507,8 @@ int screenNumber = 0; for (Rectangle rect : rectangles) { int scale = retinaScale(screenNumber); - int x = rect.x < 0 ? rect.x * scale : rect.x; - int y = rect.y < 0 ? rect.y * scale : rect.y; + int x = rect.x == -rect.width ? rect.x * scale : rect.x; + int y = rect.y == -rect.height ? rect.y * scale : rect.y; if (x < offsetx) offsetx = x; if (y < offsety) offsety = y; screenNumber++;