From 14caf676424f2c2a5ce44c69d41862660fa71be6 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Fri, 2 Jul 2010 05:17:57 +0000 Subject: Theme Editor: Switched the last two parameters of the Vp tag back to their original orientation, made the playlist display the first half with ID3 info, the second half without, as if the list were mid-way through loading git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27234 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/models/parsetreenode.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'utils/themeeditor/models/parsetreenode.cpp') diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp index f786819..08ce703 100644 --- a/utils/themeeditor/models/parsetreenode.cpp +++ b/utils/themeeditor/models/parsetreenode.cpp @@ -518,13 +518,7 @@ void ParseTreeNode::render(const RBRenderInfo &info, RBViewport* viewport, { for(int i = 0; i < children.count(); i++) children[i]->render(info, viewport); - /* TODO - * The second element of this if is a temporary hack to allow Vf and Vb - * tags in a viewport without forcing the first line of text down. A - * proper solution to this problem needs to be worked out in the parser - * as soon as possible - */ - if(!noBreak && element->line != viewport->declarationLine()) + if(!noBreak) viewport->newLine(); } else if(element->type == TEXT) @@ -787,8 +781,8 @@ bool ParseTreeNode::execTag(const RBRenderInfo& info, RBViewport* viewport) case 'p': /* %Vp */ viewport->showPlaylist(info, element->params[0].data.numeric, - element->params[2].data.code, - element->params[1].data.code); + element->params[1].data.code, + element->params[2].data.code); return true; case 'I': -- cgit v1.1