aboutsummaryrefslogtreecommitdiff
path: root/games/iourbanterror/files/patch-code__unix__linux_glimp.c
blob: 00304f2b5be1fb656191f54da743a1ac7634950f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- ./code/unix/linux_glimp.c.orig	Sun Apr 30 11:32:56 2006
+++ ./code/unix/linux_glimp.c	Sun Jun 11 17:26:26 2006
@@ -631,8 +631,14 @@
 
           dx = ((int)event.xmotion.x - mwx);
           dy = ((int)event.xmotion.y - mwy);
-					mx += dx;
-					my += dy;
+          if (abs(dx) > 1)
+            mx += dx * 2;
+          else
+            mx += dx;
+          if (abs(dy) > 1)
+            my += dy * 2;
+          else
+            my += dy;
 
           mwx = event.xmotion.x;
           mwy = event.xmotion.y;