diff options
Diffstat (limited to 'apps/gui/skin_engine/skin_tokens.c')
-rw-r--r-- | apps/gui/skin_engine/skin_tokens.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c index 486a2efc76..df2c42e727 100644 --- a/apps/gui/skin_engine/skin_tokens.c +++ b/apps/gui/skin_engine/skin_tokens.c @@ -896,6 +896,23 @@ const char *get_token_value(struct gui_wps *gwps, token->value.i * TIMEOUT_UNIT)) return "v"; return NULL; + + case WPS_TOKEN_TRACK_STARTING: + if (id3) + { + int elapsed = id3->elapsed + + state->ff_rewind_count; + if (elapsed < token->value.i * HZ) + return "starting"; + } + return NULL; + case WPS_TOKEN_TRACK_ENDING: + if (id3) + { + int elapsed = id3->elapsed + + state->ff_rewind_count; + if (id3->length - elapsed < token->value.i * HZ) + return "ending"; + } + return NULL; case WPS_TOKEN_LASTTOUCH: #ifdef HAVE_TOUCHSCREEN if (TIME_BEFORE(current_tick, token->value.i * TIMEOUT_UNIT + |