1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Fixed QT4 build

This commit is contained in:
Martin Tůma 2018-08-24 00:46:06 +02:00
parent 524d72ce3c
commit bbc1d43290

View File

@ -9,7 +9,11 @@ Image::Image(const QString &fileName) : _img(fileName)
void Image::draw(QPainter *painter, const QRectF &rect, Map::Flags flags)
{
#ifdef ENABLE_HIDPI
qreal ratio = _img.devicePixelRatioF();
#else // ENABLE_HIDPI
qreal ratio = 1.0;
#endif // ENABLE_HIDPI
QRectF sr(rect.topLeft() * ratio, rect.size() * ratio);
if (flags & Map::OpenGL) {