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:
parent
524d72ce3c
commit
bbc1d43290
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user