mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Log the device pixel ratio used while rendering
This commit is contained in:
parent
08021ba9a8
commit
e452178adb
@ -22,6 +22,8 @@
|
||||
|
||||
#include <QFile>
|
||||
|
||||
#include <QsLog.h>
|
||||
|
||||
Viewer::Viewer(QWidget *parent)
|
||||
: QScrollArea(parent),
|
||||
fullscreen(false),
|
||||
@ -363,6 +365,8 @@ void Viewer::updateContentSize()
|
||||
// apply scaling
|
||||
content->resize(pagefit);
|
||||
|
||||
QLOG_INFO() << "Device pixel ratio used while rendering: " << devicePixelRatioF();
|
||||
|
||||
// TODO: updtateContentSize should only scale the pixmap once
|
||||
if (devicePixelRatioF() > 1) // only in HDPI displays
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user