diff options
| author | Björn Stenberg <bjorn@haxx.se> | 2002-08-12 22:52:19 +0000 |
|---|---|---|
| committer | Björn Stenberg <bjorn@haxx.se> | 2002-08-12 22:52:19 +0000 |
| commit | e33d66a3ac5fe9f89b1fcd811b75edb03fb6470a (patch) | |
| tree | 7957da6c8e39d5420c0412bb85173db100edf42b /apps | |
| parent | b2a691a2b2d24dd1a8b6e311f72c592bdf41782c (diff) | |
| download | rockbox-e33d66a3ac5fe9f89b1fcd811b75edb03fb6470a.zip rockbox-e33d66a3ac5fe9f89b1fcd811b75edb03fb6470a.tar.gz rockbox-e33d66a3ac5fe9f89b1fcd811b75edb03fb6470a.tar.bz2 rockbox-e33d66a3ac5fe9f89b1fcd811b75edb03fb6470a.tar.xz | |
Tell user when limits are reached
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1692 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/playlist.c | 8 | ||||
| -rw-r--r-- | apps/tree.c | 12 |
2 files changed, 20 insertions, 0 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 92a7ad9..0d9df36 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -293,6 +293,14 @@ void add_indices_to_playlist(void) if ( playlist.amount >= MAX_PLAYLIST_SIZE ) { if(!playlist.in_ram) close(fd); + + lcd_clear_display(); + lcd_puts(0,0,"10000 file"); + lcd_puts(0,1,"limit reached"); + lcd_update(); + sleep(HZ*2); + lcd_clear_display(); + return; } diff --git a/apps/tree.c b/apps/tree.c index 531f783..8d16806 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -221,6 +221,18 @@ static int showdir(char *path, int start) strncpy(lastdir,path,sizeof(lastdir)); lastdir[sizeof(lastdir)-1] = 0; qsort(dircacheptr,filesindir,sizeof(struct entry*),compare); + + if ( filesindir == MAX_FILES_IN_DIR ) { +#ifdef HAVE_NEW_CHARCELL_LCD + lcd_double_height(false); +#endif + lcd_clear_display(); + lcd_puts(0,0,"200 file"); + lcd_puts(0,1,"limit reached"); + lcd_update(); + sleep(HZ*2); + lcd_clear_display(); + } } lcd_stop_scroll(); |