1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Fixed Qt5 builds

This commit is contained in:
Martin Tůma 2024-08-22 07:59:26 +02:00
parent 0d44663570
commit 2a4afa042c

View File

@ -1,4 +1,5 @@
#include <cmath> #include <cmath>
#include <QtMath>
#include "jls.h" #include "jls.h"
using namespace IMG; using namespace IMG;
@ -27,7 +28,7 @@ JLS::JLS(quint16 maxval, quint16 near)
_range = ((_maxval + _near * 2) / (_near * 2 + 1)) + 1; _range = ((_maxval + _near * 2) / (_near * 2 + 1)) + 1;
_qbpp = qCeil(log2(_range)); _qbpp = qCeil(log2(_range));
quint8 bpp = qMax(2, qCeil(log2(_maxval + 1))); quint8 bpp = qMax(2, qCeil(log2(_maxval + 1)));
quint8 LIMIT = 2 * (bpp + qMax(8u, bpp)); quint8 LIMIT = 2 * (bpp + qMax((quint8)8, bpp));
_limit = LIMIT - _qbpp - 1; _limit = LIMIT - _qbpp - 1;
} }