Skip to content

Commit

Permalink
use logical dpi as fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jul 13, 2021
1 parent 50ec9aa commit 0f25f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsmapcanvas.cpp
Expand Up @@ -987,7 +987,7 @@ void QgsMapCanvas::updateDevicePixelFromScreen()
else
{
// Fallback: compatibility with QGIS <= 3.20; always assume low dpi screens
mSettings.setOutputDpi( 96.0 );
mSettings.setOutputDpi( window()->windowHandle()->screen()->logicalDotsPerInch() );
}
}

Expand Down

0 comments on commit 0f25f99

Please sign in to comment.