mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-18 19:52:09 +01:00
Silenced MSVC warnings
This commit is contained in:
parent
b58adc5486
commit
e63a2e1fde
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user