aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-01-18 15:59:03 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-01-18 15:59:03 +0000
commitf6b4ab8af8024c083430c4e394a5b9881e477e30 (patch)
tree4686f60601fbf4f4c488a1474b6a578a6551c9d4 /src
parent9f44d2243659baf89b4bac956e9add821e170606 (diff)
downloadqmmp-f6b4ab8af8024c083430c4e394a5b9881e477e30.tar.gz
qmmp-f6b4ab8af8024c083430c4e394a5b9881e477e30.tar.bz2
qmmp-f6b4ab8af8024c083430c4e394a5b9881e477e30.zip
qsui: fixed build (#895)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6995 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
-rw-r--r--src/plugins/Ui/qsui/logo.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/Ui/qsui/logo.cpp b/src/plugins/Ui/qsui/logo.cpp
index c3d035c58..0026823ee 100644
--- a/src/plugins/Ui/qsui/logo.cpp
+++ b/src/plugins/Ui/qsui/logo.cpp
@@ -21,7 +21,7 @@
#include <QPainter>
#include <QFile>
#include <QTimer>
-#include <stdlib.h>
+#include <cmath>
#include <qmmp/qmmp.h>
#include "inlines.h"
#include "logo.h"
@@ -211,7 +211,7 @@ void Logo::processPreset4()
{
for(int j = 0; j < QMMP_VISUAL_NODE_SIZE; j+=8)
{
- max = qMax(max, abs(m_buffer[j] * 65536.0));
+ max = qMax(max, int(std::abs(m_buffer[j] * 65536.0)));
}
}
@@ -227,7 +227,7 @@ void Logo::processPreset4()
while(k < m_value * count / 65536 / 2)
{
- int value = abs(m_buffer[qMin(at++, QMMP_VISUAL_NODE_SIZE)] * 16);
+ int value = std::abs(m_buffer[qMin(at++, QMMP_VISUAL_NODE_SIZE)] * 16);
line.replace(line.indexOf("X"), 1, QString("%1").arg(value, 0, 16).toUpper());
k++;
}
@@ -236,7 +236,7 @@ void Logo::processPreset4()
while(k < m_value * count / 65536 / 2)
{
- int value = abs(m_buffer[qMin(at++, QMMP_VISUAL_NODE_SIZE)] * 16);
+ int value = std::abs(m_buffer[qMin(at++, QMMP_VISUAL_NODE_SIZE)] * 16);
line.replace(line.lastIndexOf("X"), 1, QString("%1").arg(value, 0, 16).toUpper());
k++;
}