summaryrefslogtreecommitdiff
path: root/data/mobileterminal/gliw.diff
blob: 00753b5c02115242f95a4ccf56fa4c438cf9cf1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -ru mobileterminal-273/GestureView.m mobileterminal-273+iPhone/GestureView.m
--- mobileterminal-273/GestureView.m	2007-10-08 05:00:47.000000000 +0000
+++ mobileterminal-273+iPhone/GestureView.m	2008-04-09 12:02:22.000000000 +0000
@@ -19,7 +19,7 @@
 - (void)mouseDown:(GSEvent *)event
 {
   gesture = NO;
-  start = GSEventGetLocationInWindow(event);
+  start = GSEventGetLocationInWindow(event).origin;
   [delegate showMenu:start];
 }
 
@@ -29,7 +29,7 @@
     return;
   }
 
-  CGPoint end = GSEventGetLocationInWindow(event);
+  CGPoint end = GSEventGetLocationInWindow(event).origin;
   CGPoint vector = CGPointMake(end.x - start.x, end.y - start.y);
 
   float absx = (vector.x > 0) ? vector.x : -vector.x;