aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/qsgimage.cpp
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2011-04-28 15:10:32 +0200
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2011-04-29 16:31:44 +0200
commitf0b1edca6368701237d83090a75ac61c1c6f2532 (patch)
tree99679cd30fe5815393e8306dcd553776d7a5ccb3 /src/declarative/items/qsgimage.cpp
parenta7a4c75918f6d1f8b2fc3e5e4e2f935690516451 (diff)
Revert "Flipped texture coordinates right way up."
This reverts commit ffb6fe57ee0ece18b6778889f7602811ab4ca822. Conflicts: src/declarative/scenegraph/qsgdefaultimagenode.cpp
Diffstat (limited to 'src/declarative/items/qsgimage.cpp')
-rw-r--r--src/declarative/items/qsgimage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/items/qsgimage.cpp b/src/declarative/items/qsgimage.cpp
index 6f63555b81..d24db9f670 100644
--- a/src/declarative/items/qsgimage.cpp
+++ b/src/declarative/items/qsgimage.cpp
@@ -262,9 +262,9 @@ QSGNode *QSGImage::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *)
};
QRectF nsrect(sourceRect.x() / d->pix.width(),
- 1 - sourceRect.y() / d->pix.height(),
+ sourceRect.y() / d->pix.height(),
sourceRect.width() / d->pix.width(),
- -sourceRect.height() / d->pix.height());
+ sourceRect.height() / d->pix.height());
node->setHorizontalWrapMode(hWrap);
node->setVerticalWrapMode(vWrap);