Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use float DPR instead of rounded value
  • Loading branch information
jbp35 authored and nyalldawson committed May 11, 2023
1 parent 38700f6 commit 8ec8e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsmapcanvas.cpp
Expand Up @@ -1244,7 +1244,7 @@ void QgsMapCanvas::notifyRendererErrors( const QgsMapRendererJob::Errors &errors

void QgsMapCanvas::updateDevicePixelFromScreen()
{
mSettings.setDevicePixelRatio( devicePixelRatio() );
mSettings.setDevicePixelRatio( devicePixelRatioF() );
// TODO: QGIS 4 -> always respect screen dpi
if ( QgsSettingsRegistryGui::settingsRespectScreenDPI->value() )
{
Expand Down

0 comments on commit 8ec8e00

Please sign in to comment.