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:
parent
8da13a5d4b
commit
2f68e5be59
6 changed files with 88 additions and 10 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue