mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Replace all uses of devicePixelRatio with devicePixelRatioF
This commit is contained in:
@ -77,7 +77,7 @@ void MagnifyingGlass::updateImage(int x, int y)
|
||||
}
|
||||
if (outImage) {
|
||||
QImage img(zoomWidth, zoomHeight, QImage::Format_RGB32);
|
||||
img.setDevicePixelRatio(devicePixelRatio());
|
||||
img.setDevicePixelRatio(devicePixelRatioF());
|
||||
img.fill(Configuration::getConfiguration().getBackgroundColor());
|
||||
if (zw > 0 && zh > 0) {
|
||||
QPainter painter(&img);
|
||||
@ -118,7 +118,7 @@ void MagnifyingGlass::updateImage(int x, int y)
|
||||
}
|
||||
if (outImage) {
|
||||
QImage img(zoomWidth, zoomHeight, QImage::Format_RGB32);
|
||||
img.setDevicePixelRatio(devicePixelRatio());
|
||||
img.setDevicePixelRatio(devicePixelRatioF());
|
||||
img.fill(Configuration::getConfiguration().getBackgroundColor());
|
||||
if (zw > 0 && zh > 0) {
|
||||
QPainter painter(&img);
|
||||
|
@ -981,7 +981,7 @@ void Viewer::setPageUnavailableMessage()
|
||||
void Viewer::configureContent(QString msg)
|
||||
{
|
||||
content->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
|
||||
if (!(devicePixelRatio() > 1))
|
||||
if (!(devicePixelRatioF() > 1))
|
||||
content->setScaledContents(true);
|
||||
content->setAlignment(Qt::AlignTop | Qt::AlignHCenter);
|
||||
content->setText(msg);
|
||||
|
Reference in New Issue
Block a user