summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-03-18 08:00:22 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-03-18 08:00:22 +0000
commit9c159c5d67d49a1f992394099c9f93ee21f5debe (patch)
tree8d0c6c7ac2af224a1671ce479d6794da7865e0c1 /apps
parente1fd5c28012f8eafb2aafa084a0106968d0974b9 (diff)
downloadrockbox-9c159c5d67d49a1f992394099c9f93ee21f5debe.tar.gz
rockbox-9c159c5d67d49a1f992394099c9f93ee21f5debe.tar.bz2
rockbox-9c159c5d67d49a1f992394099c9f93ee21f5debe.zip
woops, elapsed is ms not HZ and how did that extra + get in there?
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25241 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/skin_engine/skin_tokens.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c
index 8cf48fb202..4ee8c74cdd 100644
--- a/apps/gui/skin_engine/skin_tokens.c
+++ b/apps/gui/skin_engine/skin_tokens.c
@@ -900,16 +900,16 @@ const char *get_token_value(struct gui_wps *gwps,
case WPS_TOKEN_TRACK_STARTING:
if (id3)
{
- int elapsed = id3->elapsed + + state->ff_rewind_count;
- if (elapsed < token->value.i * HZ)
+ int elapsed = id3->elapsed + state->ff_rewind_count;
+ if (elapsed < token->value.i * 1000)
return "starting";
}
return NULL;
case WPS_TOKEN_TRACK_ENDING:
if (id3)
{
- unsigned long elapsed = id3->elapsed + + state->ff_rewind_count;
- unsigned time = token->value.i * HZ;
+ unsigned long elapsed = id3->elapsed + state->ff_rewind_count;
+ unsigned time = token->value.i * 1000;
if (id3->length - elapsed < time)
return "ending";
}