Skip to content
Permalink
Browse files

Use logical DPI instead of physical

  • Loading branch information
elpaso committed Apr 12, 2019
1 parent 04409ac commit d24e6fd53b3e634b440abfa6094be9a819fa26ff
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgswebview.h
@@ -41,9 +41,9 @@ class CORE_EXPORT QgsWebView : public QWebView
{
QDesktopWidget desktop;
// Apply zoom factor for HiDPI screens
if ( desktop.physicalDpiX() > 96 )
if ( desktop.logicalDpiX() > 96 )
{
setZoomFactor( desktop.physicalDpiX() / 96 );
setZoomFactor( desktop.logicalDpiX() / 96 );
}
}
};

0 comments on commit d24e6fd

Please sign in to comment.
You can’t perform that action at this time.