diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2006-08-12 11:00:39 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-08-12 11:00:39 +0000 |
commit | 54ec1f5f6db24ab90046b7cbab371c99e239f67e (patch) | |
tree | f028eaf16d8c6d2a5a7502dffaac499128bf1f20 /apps/playlist.c | |
parent | 9d2929b79b22765701e9db240d967877d7f7bab8 (diff) | |
download | rockbox-54ec1f5f6db24ab90046b7cbab371c99e239f67e.tar.gz rockbox-54ec1f5f6db24ab90046b7cbab371c99e239f67e.zip |
Better UI response with playlist operations.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10544 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist.c')
-rw-r--r-- | apps/playlist.c | 23 |
1 files changed, 22 insertions, 1 deletions
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) | |||
1873 | char *str1 = NULL; | 1873 | char *str1 = NULL; |
1874 | char *str2 = NULL; | 1874 | char *str2 = NULL; |
1875 | char *str3 = NULL; | 1875 | char *str3 = NULL; |
1876 | 1876 | unsigned long last_tick = current_tick; | |
1877 | |||
1877 | for(count=0; count<nread && !exit_loop; count++,p++) | 1878 | for(count=0; count<nread && !exit_loop; count++,p++) |
1878 | { | 1879 | { |
1880 | /* So a splash while we are loading. */ | ||
1881 | if (current_tick - last_tick > HZ/4) | ||
1882 | { | ||
1883 | gui_syncsplash(0, true, str(LANG_LOADING_PERCENT), | ||
1884 | (total_read+count)*100/control_file_size, | ||
1885 | #if CONFIG_KEYPAD == PLAYER_PAD | ||
1886 | str(LANG_STOP_ABORT) | ||
1887 | #else | ||
1888 | str(LANG_OFF_ABORT) | ||
1889 | #endif | ||
1890 | ); | ||
1891 | if (SETTINGS_CANCEL == button_get(false)) | ||
1892 | { | ||
1893 | /* FIXME: | ||
1894 | * Not sure how to implement this, somebody more familiar | ||
1895 | * with the code, please fix this. */ | ||
1896 | } | ||
1897 | last_tick = current_tick; | ||
1898 | } | ||
1899 | |||
1879 | /* Are we on a new line? */ | 1900 | /* Are we on a new line? */ |
1880 | if((*p == '\n') || (*p == '\r')) | 1901 | if((*p == '\n') || (*p == '\r')) |
1881 | { | 1902 | { |