diff --git a/mythtv/libs/libmythui/mythgesture.cpp b/mythtv/libs/libmythui/mythgesture.cpp
index 37846e4..f6f91da 100644
a
|
b
|
bool MythGesture::record(const QPoint & p) |
283 | 283 | int dely = p.y() - points.back().y(); |
284 | 284 | |
285 | 285 | /* step by the greatest delta direction */ |
286 | | if (abs(delx) > abs(dely)) |
| 286 | if (std::abs(delx) > std::abs(dely)) |
287 | 287 | { |
288 | 288 | float iy = points.back().y(); |
289 | 289 | |
diff --git a/mythtv/libs/libmythui/mythpainter.cpp b/mythtv/libs/libmythui/mythpainter.cpp
index f2482f1..6186b3e 100644
a
|
b
|
|
1 | 1 | #include <stdint.h> |
2 | 2 | #include <algorithm> |
| 3 | #include <cmath> // std::abs |
3 | 4 | |
4 | 5 | // QT headers |
5 | 6 | #include <QRect> |