forked from len0rd/rockbox
Theme Editor: Fixed bug that caused WPS skins without SBS parents not to render their backdrops correctly. Added support for RTL-dependant text alignment
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27295 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
db1b823ac3
commit
71b561e3df
3 changed files with 22 additions and 2 deletions
|
@ -616,6 +616,26 @@ bool ParseTreeNode::execTag(const RBRenderInfo& info, RBViewport* viewport)
|
|||
/* %ar */
|
||||
viewport->alignText(RBViewport::Right);
|
||||
return true;
|
||||
|
||||
case 'x':
|
||||
/* %ax */
|
||||
return true;
|
||||
|
||||
case 'L':
|
||||
/* %aL */
|
||||
if(info.device()->data("rtl").toBool())
|
||||
viewport->alignText(RBViewport::Right);
|
||||
else
|
||||
viewport->alignText(RBViewport::Left);
|
||||
return true;
|
||||
|
||||
case 'R':
|
||||
/* %aR */
|
||||
if(info.device()->data("rtl").toBool())
|
||||
viewport->alignText(RBViewport::Left);
|
||||
else
|
||||
viewport->alignText(RBViewport::Right);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
@ -811,7 +831,7 @@ bool ParseTreeNode::execTag(const RBRenderInfo& info, RBViewport* viewport)
|
|||
case '\0':
|
||||
/* %X */
|
||||
filename = QString(element->params[0].data.text);
|
||||
if(info.sbsScreen())
|
||||
if(info.sbsScreen() && info.screen()->parentItem())
|
||||
info.sbsScreen()->setBackdrop(filename);
|
||||
else
|
||||
info.screen()->setBackdrop(filename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue