Skip to content

Commit

Permalink
Allow dynamic DPI set
Browse files Browse the repository at this point in the history
Issue: #13553
  • Loading branch information
131 authored and vitallium committed Mar 7, 2016
1 parent 6a56ffc commit 6cf54a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/WebKit/qt/WidgetApi/qwebframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -840,8 +840,8 @@ void QWebFrame::print(QPrinter *printer, PrintCallback *callback) const
if (!painter.begin(printer))
return;

const qreal zoomFactorX = (qreal)printer->logicalDpiX() / qt_defaultDpi();
const qreal zoomFactorY = (qreal)printer->logicalDpiY() / qt_defaultDpi();
const qreal zoomFactorX = (qreal)printer->logicalDpiX() / printer->resolution();
const qreal zoomFactorY = (qreal)printer->logicalDpiY() / printer->resolution();

QRect qprinterRect = printer->pageRect();

Expand Down

0 comments on commit 6cf54a3

Please sign in to comment.