1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 06:43:22 +02: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 <QtMath>
#include "jls.h"
using namespace IMG;
@ -27,7 +28,7 @@ JLS::JLS(quint16 maxval, quint16 near)
_range = ((_maxval + _near * 2) / (_near * 2 + 1)) + 1;
_qbpp = qCeil(log2(_range));
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;
}