diff options
Diffstat (limited to 'java/src/com/tigervnc/vncviewer/DesktopWindow.java')
-rw-r--r-- | java/src/com/tigervnc/vncviewer/DesktopWindow.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/tigervnc/vncviewer/DesktopWindow.java b/java/src/com/tigervnc/vncviewer/DesktopWindow.java index b1457c33..d6704e01 100644 --- a/java/src/com/tigervnc/vncviewer/DesktopWindow.java +++ b/java/src/com/tigervnc/vncviewer/DesktopWindow.java @@ -339,8 +339,8 @@ class DesktopWindow extends JPanel implements } } } - scaleWidthRatio = (float)((float)scaledWidth / (float)cc.cp.width); - scaleHeightRatio = (float)((float)scaledHeight / (float)cc.cp.height); + scaleWidthRatio = (float)scaledWidth / (float)cc.cp.width; + scaleHeightRatio = (float)scaledHeight / (float)cc.cp.height; } synchronized public void paintComponent(Graphics g) { @@ -475,8 +475,8 @@ class DesktopWindow extends JPanel implements cursorVisible = true; if (softCursor != null) return; - int cursorLeft = (int)cursor.hotspot.x; - int cursorTop = (int)cursor.hotspot.y; + int cursorLeft = cursor.hotspot.x; + int cursorTop = cursor.hotspot.y; int cursorRight = cursorLeft + cursor.width(); int cursorBottom = cursorTop + cursor.height(); |