From 54ec1f5f6db24ab90046b7cbab371c99e239f67e Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sat, 12 Aug 2006 11:00:39 +0000 Subject: Better UI response with playlist operations. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10544 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist.c | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'apps/playlist.c') diff --git a/apps/playlist.c b/apps/playlist.c index 6b35bb6c3f..a51e8f501c 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -1873,9 +1873,30 @@ int playlist_resume(void) char *str1 = NULL; char *str2 = NULL; char *str3 = NULL; - + unsigned long last_tick = current_tick; + for(count=0; count HZ/4) + { + gui_syncsplash(0, true, str(LANG_LOADING_PERCENT), + (total_read+count)*100/control_file_size, +#if CONFIG_KEYPAD == PLAYER_PAD + str(LANG_STOP_ABORT) +#else + str(LANG_OFF_ABORT) +#endif + ); + if (SETTINGS_CANCEL == button_get(false)) + { + /* FIXME: + * Not sure how to implement this, somebody more familiar + * with the code, please fix this. */ + } + last_tick = current_tick; + } + /* Are we on a new line? */ if((*p == '\n') || (*p == '\r')) { -- cgit v1.2.3