summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-03-29 14:29:32 (GMT)
committerSamuel Rødal <samuel.rodal@nokia.com>2011-03-29 14:38:35 (GMT)
commit004989ce2e6a014df39ebbb30dccda88705ded8f (patch)
tree8b884ed1e0efd504bbed542ca561a15535eed3e2 /src
parentef85c1a7a5409f58f3212845df7dec63e2fb411f (diff)
downloadQt-004989ce2e6a014df39ebbb30dccda88705ded8f.zip
Qt-004989ce2e6a014df39ebbb30dccda88705ded8f.tar.gz
Qt-004989ce2e6a014df39ebbb30dccda88705ded8f.tar.bz2
Fixed rounding of coordinates pre-transformation in CG paintengine.
Rounding the coordinate pre-transformation leads to pretty big positioning errors when the painter has a large scale, and small source coordinates are used. Task-number: QTBUG-18416 Reviewed-by: Eskil Abrahamsen Blomfeldt
Diffstat (limited to 'src')
-rw-r--r--src/gui/painting/qpaintengine_mac.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpaintengine_mac.cpp b/src/gui/painting/qpaintengine_mac.cpp
index c3aac1b..b07053e 100644
--- a/src/gui/painting/qpaintengine_mac.cpp
+++ b/src/gui/painting/qpaintengine_mac.cpp
@@ -969,7 +969,7 @@ void QCoreGraphicsPaintEngine::drawPixmap(const QRectF &r, const QPixmap &pm, co
return;
bool differentSize = (QRectF(0, 0, pm.width(), pm.height()) != sr), doRestore = false;
- CGRect rect = CGRectMake(qRound(r.x()), qRound(r.y()), qRound(r.width()), qRound(r.height()));
+ CGRect rect = CGRectMake(r.x(), r.y(), r.width(), r.height());
QCFType<CGImageRef> image;
bool isBitmap = (pm.depth() == 1);
if (isBitmap) {