summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-08-12 22:52:19 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-08-12 22:52:19 +0000
commite33d66a3ac5fe9f89b1fcd811b75edb03fb6470a (patch)
tree7957da6c8e39d5420c0412bb85173db100edf42b /apps/tree.c
parentb2a691a2b2d24dd1a8b6e311f72c592bdf41782c (diff)
downloadrockbox-e33d66a3ac5fe9f89b1fcd811b75edb03fb6470a.tar.gz
rockbox-e33d66a3ac5fe9f89b1fcd811b75edb03fb6470a.zip
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/tree.c')
-rw-r--r--apps/tree.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 531f7838aa..8d16806304 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -221,6 +221,18 @@ static int showdir(char *path, int start)
221 strncpy(lastdir,path,sizeof(lastdir)); 221 strncpy(lastdir,path,sizeof(lastdir));
222 lastdir[sizeof(lastdir)-1] = 0; 222 lastdir[sizeof(lastdir)-1] = 0;
223 qsort(dircacheptr,filesindir,sizeof(struct entry*),compare); 223 qsort(dircacheptr,filesindir,sizeof(struct entry*),compare);
224
225 if ( filesindir == MAX_FILES_IN_DIR ) {
226#ifdef HAVE_NEW_CHARCELL_LCD
227 lcd_double_height(false);
228#endif
229 lcd_clear_display();
230 lcd_puts(0,0,"200 file");
231 lcd_puts(0,1,"limit reached");
232 lcd_update();
233 sleep(HZ*2);
234 lcd_clear_display();
235 }
224 } 236 }
225 237
226 lcd_stop_scroll(); 238 lcd_stop_scroll();