1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Robert Bieber 2010-07-15 18:58:58 +00:00
parent 74063845c0
commit 209e30854e

View file

@ -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;
}