set device pixel ratio on pixmap

This commit is contained in:
Denis Rouzaud 2018-10-05 07:20:34 -04:00
parent 9363aeb8c6
commit 2ff3f762d6

View File

@ -99,6 +99,8 @@ QPixmap QgsAppScreenShots::takeScreenshot( QWidget *widget, GrabMode mode, QRect
}
}
pixmap.setDevicePixelRatio( scr->devicePixelRatio() );
if ( !crop.isNull() )
{
qreal dpr = scr->devicePixelRatio();