Skip to content

Commit

Permalink
set device pixel ratio on pixmap
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Oct 5, 2018
1 parent 9363aeb commit 2ff3f76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/qgsappscreenshots.cpp
Expand Up @@ -99,6 +99,8 @@ QPixmap QgsAppScreenShots::takeScreenshot( QWidget *widget, GrabMode mode, QRect
}
}

pixmap.setDevicePixelRatio( scr->devicePixelRatio() );

if ( !crop.isNull() )
{
qreal dpr = scr->devicePixelRatio();
Expand Down

0 comments on commit 2ff3f76

Please sign in to comment.