summaryrefslogtreecommitdiff
path: root/multimedia/mythtv/files/patch-libs__libmythui__mythgesture.cpp
diff options
context:
space:
mode:
authorBernhard Froehlich <decke@FreeBSD.org>2014-01-25 19:44:21 +0000
committerBernhard Froehlich <decke@FreeBSD.org>2014-01-25 19:44:21 +0000
commita0bbf092a74f38dcc6803ff132515545d70f04c5 (patch)
tree04103805c17b5d04a356a1e8171319e1436b6c7e /multimedia/mythtv/files/patch-libs__libmythui__mythgesture.cpp
parent- update to 2.26 (diff)
- Update to latest 0.27 stable branch from github
- Add patches to build with clang [1] - Use OPTIONS_SUB PR: ports/186005 [1] Submitted by: John Clark <clarkjc@runbox.com> [1]
Diffstat (limited to 'multimedia/mythtv/files/patch-libs__libmythui__mythgesture.cpp')
-rw-r--r--multimedia/mythtv/files/patch-libs__libmythui__mythgesture.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/multimedia/mythtv/files/patch-libs__libmythui__mythgesture.cpp b/multimedia/mythtv/files/patch-libs__libmythui__mythgesture.cpp
new file mode 100644
index 000000000000..2f91cb2565a2
--- /dev/null
+++ b/multimedia/mythtv/files/patch-libs__libmythui__mythgesture.cpp
@@ -0,0 +1,19 @@
+--- libs/libmythui/mythgesture.cpp.orig 2013-09-18 16:06:08.000000000 -0400
++++ libs/libmythui/mythgesture.cpp 2014-01-22 08:20:33.000000000 -0500
+@@ -28,6 +28,7 @@
+
+ #include "mythgesture.h"
+
++#include <cstdlib>
+ #include <cmath>
+ #include <algorithm>
+
+@@ -283,7 +284,7 @@
+ int dely = p.y() - points.back().y();
+
+ /* step by the greatest delta direction */
+- if (abs(delx) > abs(dely))
++ if (std::abs(delx) > std::abs(dely))
+ {
+ float iy = points.back().y();
+