Use a faster QImage format

This commit is contained in:
Martin Tůma 2018-11-14 00:03:46 +01:00
parent 308bb59fc4
commit 14adb0925c

View File

@ -70,7 +70,7 @@ bool PBFHandler::read(QImage *image)
qreal scale = _scaledSize.isValid()
? qMax(_scaledSize.width() / TILE_SIZE, _scaledSize.height() / TILE_SIZE)
: 1.0;
*image = QImage(size, QImage::Format_ARGB32);
*image = QImage(size, QImage::Format_ARGB32_Premultiplied);
return PBF::render(ba, ok ? zoom : -1, _style, scale, image);
}