summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
diff options
context:
space:
mode:
authorScott Kovatch <skovatch>2010-12-21 16:42:41 +0000
committerScott Kovatch <skovatch>2010-12-21 16:42:41 +0000
commitbb70bcfb5425474105869f68ad1a3a69d21d6af0 (patch)
treed60ad6540ca4d982875867f2223c1e7cdbc4d7c7 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
parentabe585513c9efc293772dbd2845494f682685372 (diff)
downloadeclipse.platform.swt-bb70bcfb5425474105869f68ad1a3a69d21d6af0.tar.gz
eclipse.platform.swt-bb70bcfb5425474105869f68ad1a3a69d21d6af0.tar.xz
eclipse.platform.swt-bb70bcfb5425474105869f68ad1a3a69d21d6af0.zip
Removed unnecessary indirection for wmGesture.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java9
1 files changed, 8 insertions, 1 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 35b13e8b36..bc1ac27175 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
@@ -4442,7 +4442,14 @@ LRESULT WM_ERASEBKGND (int /*long*/ wParam, int /*long*/ lParam) {
}
LRESULT WM_GESTURE (int /*long*/ wParam, int /*long*/ lParam) {
- return wmGesture (handle, wParam, lParam);
+ boolean handled = false;
+ GESTUREINFO gi = new GESTUREINFO();
+ gi.cbSize = GESTUREINFO.sizeof;
+ if (OS.GetGestureInfo(lParam, gi)) {
+ handled = sendGestureEvent(gi);
+ }
+ OS.CloseGestureInfoHandle(lParam);
+ return (handled ? LRESULT.ZERO : null);
}
LRESULT WM_GETDLGCODE (int /*long*/ wParam, int /*long*/ lParam) {