mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Theme Editor: Fixed some compiler warnings and a segfault. Got some basic text rendering working (only with plaintext elements, no font support yet) as well as Viewport background color support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27126 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
691d049177
commit
273b9d6050
9 changed files with 70 additions and 15 deletions
|
@ -516,7 +516,11 @@ void ParseTreeNode::render(const RBRenderInfo &info, RBViewport* viewport)
|
|||
{
|
||||
for(int i = 0; i < children.count(); i++)
|
||||
children[i]->render(info, viewport);
|
||||
viewport->newline();
|
||||
viewport->newLine();
|
||||
}
|
||||
else if(element->type == TEXT)
|
||||
{
|
||||
viewport->write(QString(static_cast<char*>(element->data)));
|
||||
}
|
||||
else if(element->type == TAG)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue