Skip to content

Commit

Permalink
Use logical DPI instead of physical
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Apr 15, 2019
1 parent 04409ac commit d24e6fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgswebview.h
Expand Up @@ -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 );
}
}
};
Expand Down

0 comments on commit d24e6fd

Please sign in to comment.