diff --git a/YACReader/viewer.cpp b/YACReader/viewer.cpp index bcf34b00..79a833d0 100644 --- a/YACReader/viewer.cpp +++ b/YACReader/viewer.cpp @@ -22,6 +22,8 @@ #include +#include + 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 {