diff options
author | MihailNaydenov <garfieldhq@yahoo.com> | 2014-09-26 12:23:55 +0300 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com> | 2014-12-12 15:32:55 +0100 |
commit | dc583a0576343cfcd5544a21b8625af61e299e6f (patch) | |
tree | 5463f3fdbc4a878009684baa5368a406caddacda /src/gui/image/qjpeghandler.cpp | |
parent | d47b9ace50d47a4472dc9fb029bbf6e8dd810c01 (diff) |
Fix incorrect QImage transformation when its devicePixelRatio != 1
QImage::transformed compensates for unwanted translation. This compensation
is performed in "pixel space". However, a possible code path to perform the
transformation uses QPainter which is devicePixelRatio-aware and expects the
transformation matrix to be in logical coordinates.
For example, image.transformed(QTransform().rotate(45)) will result in
cropped out image if devicePixelRatio == 2.
Change-Id: I830ff3ffa25531d842dc9c77f1d0e8d4bd502c9d
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Diffstat (limited to 'src/gui/image/qjpeghandler.cpp')
0 files changed, 0 insertions, 0 deletions