summaryrefslogtreecommitdiffstats
path: root/java/src/com/tigervnc/vncviewer/CConn.java
diff options
context:
space:
mode:
authorBrian Hinz <bphinz@users.sourceforge.net>2011-10-04 23:53:01 +0000
committerBrian Hinz <bphinz@users.sourceforge.net>2011-10-04 23:53:01 +0000
commitf3120e401efc3f179d5246e93c3fed65519b3754 (patch)
tree665421390e35524c15162a0692331ca36953d388 /java/src/com/tigervnc/vncviewer/CConn.java
parent1339485558ea066e3e8dc6e70ad55824402382c8 (diff)
downloadtigervnc-f3120e401efc3f179d5246e93c3fed65519b3754.tar.gz
tigervnc-f3120e401efc3f179d5246e93c3fed65519b3754.zip
Fixes for bug #3418258. Cleans up all of the 'unchecked' and 'deprecated' linter warnings. Several of the redundant casts have been intentionally left for clarity. Set '-serial' and '-cast' linter flags to reduce the number of warnings (it should be safe to ignore serial because the end product is a jar rather than individual class files. AFAIK, there is no performance penalty for redundant casts in Java). If anyone objects to the linter flags they can be removed (the linter flags, that is).
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4694 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java/src/com/tigervnc/vncviewer/CConn.java')
-rw-r--r--java/src/com/tigervnc/vncviewer/CConn.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/tigervnc/vncviewer/CConn.java b/java/src/com/tigervnc/vncviewer/CConn.java
index 636bfacf..87847501 100644
--- a/java/src/com/tigervnc/vncviewer/CConn.java
+++ b/java/src/com/tigervnc/vncviewer/CConn.java
@@ -942,8 +942,8 @@ public class CConn extends CConnection
}
clipboardDialog.setSendingEnabled(viewer.sendClipboard.getValue());
- menuKey = (int)(options.menuKey.getSelectedIndex()+0xFFBE);
- F8Menu.f8.setLabel("Send F"+(menuKey-Keysyms.F1+1));
+ menuKey = (options.menuKey.getSelectedIndex()+0xFFBE);
+ F8Menu.f8.setText("Send F"+(menuKey-Keysyms.F1+1));
shared = options.shared.isSelected();
setShared(shared);
@@ -1185,9 +1185,9 @@ public class CConn extends CConnection
if (cp.width != desktop.scaledWidth ||
cp.height != desktop.scaledHeight) {
int sx = (desktop.scaleWidthRatio == 1.00)
- ? ev.getX() : (int)Math.floor(ev.getX()/(float)desktop.scaleWidthRatio);
+ ? ev.getX() : (int)Math.floor(ev.getX()/desktop.scaleWidthRatio);
int sy = (desktop.scaleHeightRatio == 1.00)
- ? ev.getY() : (int)Math.floor(ev.getY()/(float)desktop.scaleHeightRatio);
+ ? ev.getY() : (int)Math.floor(ev.getY()/desktop.scaleHeightRatio);
ev.translatePoint(sx - ev.getX(), sy - ev.getY());
writer().writePointerEvent(new Point(ev.getX(),ev.getY()), buttonMask);
} else {