summaryrefslogtreecommitdiffstats
path: root/apps/playlist.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2008-10-12 16:47:59 +0000
committerNils Wallménius <nils@rockbox.org>2008-10-12 16:47:59 +0000
commit2ca30a0c745f0b50fe969fe0763816497289fa3e (patch)
treeb793a4edf3ea7e55c1ba3d0ed78d20a149a6ebf5 /apps/playlist.c
parentda8bff107e8ed6bf63cc005bfa6c90b12c8b4dd5 (diff)
downloadrockbox-2ca30a0c745f0b50fe969fe0763816497289fa3e.tar.gz
rockbox-2ca30a0c745f0b50fe969fe0763816497289fa3e.zip
Minor clean up, move common define to a header file and use TIME_AFTER macro
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18783 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 9cbda3f991..cdcc0594c2 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -136,8 +136,6 @@
#define PLAYLIST_QUEUED 0x20000000
#define PLAYLIST_SKIPPED 0x10000000
-#define PLAYLIST_DISPLAY_COUNT 10
-
struct directory_search_context {
struct playlist_info* playlist;
int position;
@@ -2040,7 +2038,7 @@ int playlist_resume(void)
for(count=0; count<nread && !exit_loop && !useraborted; count++,p++)
{
/* So a splash while we are loading. */
- if (current_tick - last_tick > HZ/4)
+ if (TIME_AFTER(current_tick, last_tick + HZ/4))
{
splashf(0, str(LANG_LOADING_PERCENT),
(total_read+count)*100/control_file_size,