aboutsummaryrefslogtreecommitdiff
path: root/games/trackballs/patches
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-06-21 12:08:28 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-06-24 08:32:51 +0700
commit9ea897dbe3ccf801650a19d85263630057f5a488 (patch)
treefa60236a20ce56d8e671dcf61d554e57231e518f /games/trackballs/patches
parentc6bcf415174c8ced71afaaa04fe285f35ec421e1 (diff)
games/trackballs: Fix build for -current.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games/trackballs/patches')
-rw-r--r--games/trackballs/patches/abs.diff22
1 files changed, 22 insertions, 0 deletions
diff --git a/games/trackballs/patches/abs.diff b/games/trackballs/patches/abs.diff
new file mode 100644
index 0000000000000..597971906d65d
--- /dev/null
+++ b/games/trackballs/patches/abs.diff
@@ -0,0 +1,22 @@
+diff -Naur trackballs-1.1.4/src/glHelp.cc trackballs-1.1.4.patched/src/glHelp.cc
+--- trackballs-1.1.4/src/glHelp.cc 2007-04-07 09:15:09.000000000 -0400
++++ trackballs-1.1.4.patched/src/glHelp.cc 2017-06-21 11:58:32.035646783 -0400
+@@ -129,7 +129,6 @@
+ // why is this removed? should it not be done???
+ glDeleteTextures(1,&texture);
+ }
+-inline Real abs(Real v) {return v>0.0?v:-v;}
+ double mousePointerPhase=0.0;
+
+ void tickMouse(Real td) {
+diff -Naur trackballs-1.1.4/src/menuMode.cc trackballs-1.1.4.patched/src/menuMode.cc
+--- trackballs-1.1.4/src/menuMode.cc 2007-04-07 09:16:26.000000000 -0400
++++ trackballs-1.1.4.patched/src/menuMode.cc 2017-06-21 11:58:36.201646790 -0400
+@@ -163,7 +163,6 @@
+ case MENU_EDITOR: GameMode::activate(EditMode::editMode); break;
+ }
+ }
+-inline Real abs(Real v) {return v>0.0?v:-v;}
+
+ void MenuMode::idle(Real td) {
+ int w,h,i,x,y;