mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
Use device pixel ratio when using intermediate images in lens
This commit is contained in:
@ -77,6 +77,7 @@ void MagnifyingGlass::updateImage(int x, int y)
|
|||||||
}
|
}
|
||||||
if (outImage) {
|
if (outImage) {
|
||||||
QImage img(zoomWidth, zoomHeight, QImage::Format_RGB32);
|
QImage img(zoomWidth, zoomHeight, QImage::Format_RGB32);
|
||||||
|
img.setDevicePixelRatio(devicePixelRatio());
|
||||||
img.fill(Configuration::getConfiguration().getBackgroundColor());
|
img.fill(Configuration::getConfiguration().getBackgroundColor());
|
||||||
if (zw > 0 && zh > 0) {
|
if (zw > 0 && zh > 0) {
|
||||||
QPainter painter(&img);
|
QPainter painter(&img);
|
||||||
@ -117,6 +118,7 @@ void MagnifyingGlass::updateImage(int x, int y)
|
|||||||
}
|
}
|
||||||
if (outImage) {
|
if (outImage) {
|
||||||
QImage img(zoomWidth, zoomHeight, QImage::Format_RGB32);
|
QImage img(zoomWidth, zoomHeight, QImage::Format_RGB32);
|
||||||
|
img.setDevicePixelRatio(devicePixelRatio());
|
||||||
img.fill(Configuration::getConfiguration().getBackgroundColor());
|
img.fill(Configuration::getConfiguration().getBackgroundColor());
|
||||||
if (zw > 0 && zh > 0) {
|
if (zw > 0 && zh > 0) {
|
||||||
QPainter painter(&img);
|
QPainter painter(&img);
|
||||||
|
Reference in New Issue
Block a user