From 6e73061c58236c2300f471dffea2e2606158fbac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20Johan=20S=C3=B8rvig?= Date: Thu, 18 Apr 2013 09:41:23 +0200 Subject: Actually set devicePixelRatio on copy. Followup to 7b9d4531 - the second part refactors to call setDevicePixelRatio but the call itself was left out. Change-Id: I3e36452603fe1d7d53fa1a74d87169efea1c2e78 Reviewed-by: Gabriel de Dietrich --- src/gui/image/qpixmap_raster.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/image/qpixmap_raster.cpp b/src/gui/image/qpixmap_raster.cpp index c80ccd8b1d..f9a017c281 100644 --- a/src/gui/image/qpixmap_raster.cpp +++ b/src/gui/image/qpixmap_raster.cpp @@ -244,6 +244,7 @@ QImage QRasterPlatformPixmap::toImage(const QRect &rect) const QImage newImage(image.scanLine(clipped.y()) + clipped.x() * (du / 8), clipped.width(), clipped.height(), image.bytesPerLine(), image.format()); + newImage.setDevicePixelRatio(image.devicePixelRatio()); return newImage; } else { return image.copy(clipped); -- cgit v1.2.3