forked from len0rd/rockbox
Theme Editor: Implemented text alignment
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27191 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ce4da595e1
commit
d2ed594246
3 changed files with 114 additions and 6 deletions
|
@ -590,6 +590,27 @@ bool ParseTreeNode::execTag(const RBRenderInfo& info, RBViewport* viewport)
|
|||
switch(element->tag->name[0])
|
||||
{
|
||||
|
||||
case 'a':
|
||||
switch(element->tag->name[1])
|
||||
{
|
||||
case 'c':
|
||||
/* %ac */
|
||||
viewport->alignText(RBViewport::Center);
|
||||
return true;
|
||||
|
||||
case 'l':
|
||||
/* %al */
|
||||
viewport->alignText(RBViewport::Left);
|
||||
return true;
|
||||
|
||||
case 'r':
|
||||
/* %ar */
|
||||
viewport->alignText(RBViewport::Right);
|
||||
return true;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case 'x':
|
||||
switch(element->tag->name[1])
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue