1
0
Fork 0
forked from len0rd/rockbox

Tell user when limits are reached

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1692 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-08-12 22:52:19 +00:00
parent b2a691a2b2
commit e33d66a3ac
2 changed files with 20 additions and 0 deletions

View file

@ -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;
}

View file

@ -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();