summaryrefslogtreecommitdiff
path: root/utils/themeeditor/models
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-07-15 18:58:58 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-07-15 18:58:58 +0000
commit209e30854ec5b9b1d0c3e6e44b7de9a40e9bcaf3 (patch)
tree69f75dbc173b857f7042c70c7b5cb04b22eea978 /utils/themeeditor/models
parent74063845c0a6602fd9ccfc038165b15a587eb656 (diff)
Theme Editor: Made toutouch area coordinates absolute rather than relative
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27435 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/models')
-rw-r--r--utils/themeeditor/models/parsetreenode.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp
index fbb7b9279f..f698adcd49 100644
--- a/utils/themeeditor/models/parsetreenode.cpp
+++ b/utils/themeeditor/models/parsetreenode.cpp
@@ -843,6 +843,8 @@ bool ParseTreeNode::execTag(const RBRenderInfo& info, RBViewport* viewport)
int height = element->params[3].data.number;
QString action(element->params[4].data.text);
RBTouchArea* temp = new RBTouchArea(width, height, action, info);
+ x -= viewport->x();
+ y -= viewport->y();
temp->setPos(x, y);
return true;
}