forked from len0rd/rockbox
Theme Editor: Beginning to work on conditional rendering, just made fix to line following code to speed up horizontal scrolling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27168 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
aa13a5377c
commit
449a895372
8 changed files with 32 additions and 28 deletions
|
|
@ -509,7 +509,7 @@ void ParseTreeNode::render(const RBRenderInfo& info)
|
|||
|
||||
}
|
||||
|
||||
/* This version is called for logical lines and such */
|
||||
/* This version is called for logical lines, tags, conditionals and such */
|
||||
void ParseTreeNode::render(const RBRenderInfo &info, RBViewport* viewport)
|
||||
{
|
||||
if(element->type == LINE)
|
||||
|
|
@ -524,10 +524,13 @@ void ParseTreeNode::render(const RBRenderInfo &info, RBViewport* viewport)
|
|||
}
|
||||
else if(element->type == TAG)
|
||||
{
|
||||
|
||||
if(!execTag(info, viewport))
|
||||
viewport->write(evalTag(info).toString());
|
||||
|
||||
}
|
||||
else if(element->type == CONDITIONAL)
|
||||
{
|
||||
int child = evalTag(info, true, element->children_count).toInt();
|
||||
//children[0]->render(info, viewport);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue