summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-10-05 02:42:39 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-10-05 02:42:39 (GMT)
commit9d3505cec4749c86ca2782726388c040941ed25c (patch)
tree3146bcd1233ff49eddd022b7810ed8973771c6d7 /src
parent587a0ca36000d9446f2ec9be7276bd734ee4b999 (diff)
downloadQt-9d3505cec4749c86ca2782726388c040941ed25c.zip
Qt-9d3505cec4749c86ca2782726388c040941ed25c.tar.gz
Qt-9d3505cec4749c86ca2782726388c040941ed25c.tar.bz2
Fix Rectangle size when drawing with qDrawBorderPixmap.
Diffstat (limited to 'src')
-rw-r--r--src/declarative/fx/qfxrect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/fx/qfxrect.cpp b/src/declarative/fx/qfxrect.cpp
index eb8103c..0648ac4 100644
--- a/src/declarative/fx/qfxrect.cpp
+++ b/src/declarative/fx/qfxrect.cpp
@@ -459,7 +459,7 @@ void QFxRect::drawRect(QPainter &p)
QMargins margins(xOffset, yOffset, xOffset, yOffset);
QTileRules rules(Qt::StretchTile, Qt::StretchTile);
- qDrawBorderPixmap(&p, QRect(-pw/2, -pw/2, d->rectImage.width()/2 + xOffset*2, d->rectImage.height()/2 + yOffset*2), margins, d->rectImage, d->rectImage.rect(), margins, rules);
+ qDrawBorderPixmap(&p, QRect(-pw/2, -pw/2, width()+pw, height()+pw), margins, d->rectImage, d->rectImage.rect(), margins, rules);
if (d->smooth) {
p.setRenderHint(QPainter::Antialiasing, oldAA);