diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2016-02-24 13:13:36 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2016-02-26 07:16:48 +0000 |
commit | c0963486ce689e778d59dafd26d36d8ef9e3ee74 (patch) | |
tree | 3660d692015ea3b83358d09eeb1cf76582dc3ea5 /src/plugins/platforms | |
parent | 44357dbe423d430246504d977f4422ed0e2e7a5a (diff) |
QScreen::grabWindow(): Scale the coordinates.
The coordinates need to be scaled before calling QPlatformScreen::grabWindow()
On return, set a devicePixelRatio on the pixmap.
Adapt the QWidget test to scale the grabbed pixmaps.
Fixes pixeltool displaying the wrong part of the screen when High DPI scaling
is in effect.
Task-number: QTBUG-46615
Change-Id: I12de7df0da669230cf0fae74f4a42d43f061d5ff
Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
Diffstat (limited to 'src/plugins/platforms')
0 files changed, 0 insertions, 0 deletions