Use device pixel ratio when using intermediate images in lens

This commit is contained in:
Luis Ángel San Martín 2019-06-01 10:51:58 +02:00
parent bc5a177f4f
commit 0503a83a86

View File

@ -77,6 +77,7 @@ void MagnifyingGlass::updateImage(int x, int y)
}
if (outImage) {
QImage img(zoomWidth, zoomHeight, QImage::Format_RGB32);
img.setDevicePixelRatio(devicePixelRatio());
img.fill(Configuration::getConfiguration().getBackgroundColor());
if (zw > 0 && zh > 0) {
QPainter painter(&img);
@ -117,6 +118,7 @@ void MagnifyingGlass::updateImage(int x, int y)
}
if (outImage) {
QImage img(zoomWidth, zoomHeight, QImage::Format_RGB32);
img.setDevicePixelRatio(devicePixelRatio());
img.fill(Configuration::getConfiguration().getBackgroundColor());
if (zw > 0 && zh > 0) {
QPainter painter(&img);