1
0
Fork 0
forked from len0rd/rockbox

get the renderer working more better! "handle" sublines correctly, dont "draw" in the first viewport if we are using viewports, get rid of the idea of a linear token array (i.e we are going to use the parse tree directly)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26831 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2010-06-13 13:54:34 +00:00
parent 93460f50ba
commit 21cbdac55f
5 changed files with 70 additions and 49 deletions

View file

@ -27,26 +27,10 @@
#include "skin_parser.h"
#include "tag_table.h"
struct skin_token {
enum skin_token_type type; /* enough to store the token type */
/* Whether the tag (e.g. track name or the album) refers the
current or the next song (false=current, true=next) */
bool next;
union {
char c;
unsigned int i;
void* data;
} value;
};
#define MAX_TOKENS 10000
#ifndef SKIN_STRUCTS_H_
#define SKIN_STRUCTS_H_
struct skin
{
int token_count;
struct skin_token tokens[MAX_TOKENS];
};
@ -66,3 +50,12 @@ struct progressbar {
// struct bitmap bm;
bool have_bitmap_pb;
};
struct subline {
int timeout;
int current_line;
unsigned long last_change_tick;
};
#endif