summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_tokens.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-08-16 18:23:00 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-08-16 18:23:00 +0000
commit18a8e529b5d14413dce83cdb9103f3426db10708 (patch)
tree5ac9e53a987b6a48c92281b32aba9b6ca9bcab08 /apps/gui/skin_engine/skin_tokens.c
parenteefe832785407c387e71aba476091e805eecc3f4 (diff)
downloadrockbox-18a8e529b5d14413dce83cdb9103f3426db10708.tar.gz
rockbox-18a8e529b5d14413dce83cdb9103f3426db10708.zip
more wps->skin engine work..
start redoing memory management in the skins to use a single larger buffer instead of lots of arrays for things like images and progressbars. This commit removes the limit on the amount of progressbars allowed on the screen, still 1 per viewport, but unlimited otherwise(!) Also a larger buffer for remote targets, same size for non-remote targets but very easy to make it bigger (technically removed the 52(?) image limit in skins, except still limited to 1 char identifiers) Unlimited "string" tokens now (limit was 1024 which was rediculously wasteful) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22350 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_tokens.c')
-rw-r--r--apps/gui/skin_engine/skin_tokens.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c
index b1163aa88a..386dc5ded8 100644
--- a/apps/gui/skin_engine/skin_tokens.c
+++ b/apps/gui/skin_engine/skin_tokens.c
@@ -167,7 +167,7 @@ const char *get_token_value(struct gui_wps *gwps,
167 return &(token->value.c); 167 return &(token->value.c);
168 168
169 case WPS_TOKEN_STRING: 169 case WPS_TOKEN_STRING:
170 return data->strings[token->value.i]; 170 return (char*)token->value.data;
171 171
172 case WPS_TOKEN_TRACK_TIME_ELAPSED: 172 case WPS_TOKEN_TRACK_TIME_ELAPSED:
173 format_time(buf, buf_size, 173 format_time(buf, buf_size,