Skip to content

Commit d24e6fd

Browse files
committedApr 15, 2019
Use logical DPI instead of physical
1 parent 04409ac commit d24e6fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/core/qgswebview.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ class CORE_EXPORT QgsWebView : public QWebView
4141
{
4242
QDesktopWidget desktop;
4343
// Apply zoom factor for HiDPI screens
44-
if ( desktop.physicalDpiX() > 96 )
44+
if ( desktop.logicalDpiX() > 96 )
4545
{
46-
setZoomFactor( desktop.physicalDpiX() / 96 );
46+
setZoomFactor( desktop.logicalDpiX() / 96 );
4747
}
4848
}
4949
};

0 commit comments

Comments
 (0)
Please sign in to comment.