Fix blurry preview on HiDPI displays

Review Request #129189 - Created Oct. 15, 2016 and submitted

Information
Peter Wu
spectacle
6e9b3c4...
Reviewers
kdegraphics
bgupta
THe captured pixmap should always have devicePixelRatio one, it only
needs to be changed when it is actually drawn in the preview widget.

Also fixes a regression from e4c2e564a5b91497132d9a20d8f521af405286bd
("Replace KScreen by QScreen for current window grab"), now the current
screen grab mode will again capture the full screen on HiDPI screens.

Tested with: QT_SCALE_FACTOR=2 src/spectacle

Image is sharper now with this option.

Boudhayan Gupta
Peter Wu
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit a41e83edbaadd27cd8ea85d4dfa375033e8ade84 by Peter Wu to branch master.
Loading...