1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 14:53:21 +02:00

Silenced MSVC warnings

This commit is contained in:
Martin Tůma 2019-03-09 14:36:15 +01:00
parent b58adc5486
commit e63a2e1fde

View File

@ -197,7 +197,7 @@ RMap::RMap(const QString &fileName, QObject *parent)
return; return;
} }
QSize imageSize(width, -height); QSize imageSize(width, -(int)height);
_tileSize = QSize(tileWidth, tileHeight); _tileSize = QSize(tileWidth, tileHeight);
if (paletteSize) { if (paletteSize) {
@ -228,7 +228,7 @@ RMap::RMap(const QString &fileName, QObject *parent)
quint32 width, height; quint32 width, height;
stream >> width >> height; stream >> width >> height;
zoom.size = QSize(width, -height); zoom.size = QSize(width, -(int)height);
stream >> width >> height; stream >> width >> height;
zoom.dim = QSize(width, height); zoom.dim = QSize(width, height);
zoom.scale = QPointF((qreal)zoom.size.width() / (qreal)imageSize.width(), zoom.scale = QPointF((qreal)zoom.size.width() / (qreal)imageSize.width(),
@ -344,7 +344,7 @@ QPixmap RMap::tile(int x, int y)
return QPixmap(); return QPixmap();
quint32 width, height, size; quint32 width, height, size;
stream >> width >> height >> size; stream >> width >> height >> size;
QSize tileSize(width, -height); QSize tileSize(width, -(int)height);
quint32 bes = qToBigEndian(tileSize.width() * tileSize.height()); quint32 bes = qToBigEndian(tileSize.width() * tileSize.height());
QByteArray ba; QByteArray ba;