1
0
Fork 0
forked from len0rd/rockbox

Theme Editor: SBS will now render underneath WPS, if both are present in project

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27265 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Bieber 2010-07-03 22:57:42 +00:00
parent 8da13a5d4b
commit 2f68e5be59
6 changed files with 88 additions and 10 deletions

View file

@ -113,12 +113,22 @@ RBViewport::RBViewport(skin_element* node, const RBRenderInfo& info)
if(h < 0)
h = info.screen()->getHeight() + h - y;
/* Adjusting to screen coordinates if necessary */
if(screen->parentItem() != 0)
{
x -= screen->parentItem()->pos().x();
y -= screen->parentItem()->pos().y();
}
setPos(x, y);
size = QRectF(0, 0, w, h);
}
debug = info.device()->data("showviewports").toBool();
lineHeight = font->lineHeight();
if(customUI)
screen->setCustomUI(this);
}
RBViewport::~RBViewport()