summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-fps/warsow/files/warsow-0.21-inverted-mouse.patch')
-rw-r--r--games-fps/warsow/files/warsow-0.21-inverted-mouse.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/games-fps/warsow/files/warsow-0.21-inverted-mouse.patch b/games-fps/warsow/files/warsow-0.21-inverted-mouse.patch
new file mode 100644
index 000000000000..5d39e2ef01b7
--- /dev/null
+++ b/games-fps/warsow/files/warsow-0.21-inverted-mouse.patch
@@ -0,0 +1,15 @@
+--- source/linux/in_x11.c
++++ source/linux/in_x11.c
+@@ -589,10 +589,8 @@
+ }
+ else
+ {
+- mx = -((int)event.xmotion.x - mwx);
+- my = -((int)event.xmotion.y - mwy);
+- mwx = event.xmotion.x;
+- mwy = event.xmotion.y;
++ mx += ((int)event.xmotion.x - mwx);
++ my += ((int)event.xmotion.y - mwy);
+
+ if (mx || my)
+ dowarp = qtrue;