diff options
author | Scott Kovatch <skovatch> | 2010-12-21 18:20:28 +0000 |
---|---|---|
committer | Scott Kovatch <skovatch> | 2010-12-21 18:20:28 +0000 |
commit | d206e89234fcccf2c9e5c2a6009198690b82c279 (patch) | |
tree | 3b468bc5ccbeece59c3e57163efd8cf37c40a7e6 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java | |
parent | 31b7e14bceda4eac6e74ea4bd2865b1d0782034c (diff) | |
download | eclipse.platform.swt-d206e89234fcccf2c9e5c2a6009198690b82c279.tar.gz eclipse.platform.swt-d206e89234fcccf2c9e5c2a6009198690b82c279.tar.xz eclipse.platform.swt-d206e89234fcccf2c9e5c2a6009198690b82c279.zip |
Fix unnecessary casts.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java index 241d4c19c4..e72bcc9cd8 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java @@ -5058,9 +5058,8 @@ LRESULT WM_TABLET_FLICK (int /*long*/ wParam, int /*long*/ lParam) { FLICK_POINT fPoint = new FLICK_POINT (); source [0] = lParam; OS.MoveMemory (fPoint, source, OS.FLICK_POINT_sizeof ()); - - /* The iFlickDirection field is defined as a 3-bit value in the FLICK_DATA structure */ - switch (fData.iFlickDirection & 0x7) { + + switch (fData.iFlickDirection) { case OS.FLICKDIRECTION_RIGHT: event.xDirection = 1; event.yDirection = 0; |