From e63a2e1fde6217ffed10f7823d622ad909d9f833 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sat, 9 Mar 2019 14:36:15 +0100 Subject: [PATCH] Silenced MSVC warnings --- src/map/rmap.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/map/rmap.cpp b/src/map/rmap.cpp index ed6de641..9b06d4b6 100644 --- a/src/map/rmap.cpp +++ b/src/map/rmap.cpp @@ -197,7 +197,7 @@ RMap::RMap(const QString &fileName, QObject *parent) return; } - QSize imageSize(width, -height); + QSize imageSize(width, -(int)height); _tileSize = QSize(tileWidth, tileHeight); if (paletteSize) { @@ -228,7 +228,7 @@ RMap::RMap(const QString &fileName, QObject *parent) quint32 width, height; stream >> width >> height; - zoom.size = QSize(width, -height); + zoom.size = QSize(width, -(int)height); stream >> width >> height; zoom.dim = QSize(width, height); zoom.scale = QPointF((qreal)zoom.size.width() / (qreal)imageSize.width(), @@ -344,7 +344,7 @@ QPixmap RMap::tile(int x, int y) return QPixmap(); quint32 width, height, size; stream >> width >> height >> size; - QSize tileSize(width, -height); + QSize tileSize(width, -(int)height); quint32 bes = qToBigEndian(tileSize.width() * tileSize.height()); QByteArray ba;