Skip to content
Permalink
Browse files

set device pixel ratio on pixmap

  • Loading branch information
3nids committed Oct 5, 2018
1 parent 9363aeb commit 2ff3f762d6be884fdc904d8cd0d4b008264c8ae6
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/qgsappscreenshots.cpp
@@ -99,6 +99,8 @@ QPixmap QgsAppScreenShots::takeScreenshot( QWidget *widget, GrabMode mode, QRect
}
}

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

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

0 comments on commit 2ff3f76

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