diff options
| author | Robert Hak <adiamas@rockbox.org> | 2002-06-12 07:45:42 +0000 |
|---|---|---|
| committer | Robert Hak <adiamas@rockbox.org> | 2002-06-12 07:45:42 +0000 |
| commit | 3a89b64773faff2d3983b922a933883f340576f6 (patch) | |
| tree | 426f500f2f2bc2aa59936a9906e723893c5289b6 | |
| parent | 7daaa6111f2acbb9433b6245683fb06e87e5401d (diff) | |
| download | rockbox-3a89b64773faff2d3983b922a933883f340576f6.zip rockbox-3a89b64773faff2d3983b922a933883f340576f6.tar.gz rockbox-3a89b64773faff2d3983b922a933883f340576f6.tar.bz2 rockbox-3a89b64773faff2d3983b922a933883f340576f6.tar.xz | |
playlist icon now displayed for playlists
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@968 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/tree.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/tree.c b/apps/tree.c index 7a7db30..4e408b1 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -146,9 +146,12 @@ static int showdir(char *path, int start) len = strlen(dircacheptr[i]->name); #ifdef HAVE_LCD_BITMAP - if ( dircacheptr[i]->file ) - icon_type=File; - else + if ( dircacheptr[i]->file ) { + if(!strcmp(&dircacheptr[i]->name[len-4], ".m3u")) + icon_type = Playlist; + else + icon_type=File; + } else icon_type=Folder; lcd_bitmap(bitmap_icons_6x8[icon_type], 6, MARGIN_Y+(i-start)*LINE_HEIGTH, 6, 8, true); @@ -298,7 +301,8 @@ bool dirbrowse(char *root) lcd_stop_scroll(); if((len > 4) && !strcmp(&dircacheptr[dircursor+start]->name[len-4], - ".m3u")) { + ".m3u")) + { playing = 2; play_list(currdir, dircacheptr[dircursor+start]->name); } |