summaryrefslogtreecommitdiff
path: root/apps/playlist.c
diff options
context:
space:
mode:
authorMarkus Braun <markus.braun@krawel.de>2002-08-07 10:35:26 +0000
committerMarkus Braun <markus.braun@krawel.de>2002-08-07 10:35:26 +0000
commitde8fbf00a8a4a2c85fc9ee4b2758881f4ec435d9 (patch)
tree5cc60884b43b291f3878527413c4d7f21f210624 /apps/playlist.c
parent999e2127af292ffac2d36dcb54b78a2f1abce6bf (diff)
Added status bar to file browser and wps
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1582 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 44d1e34349..48c66dbc80 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -30,6 +30,13 @@
#include "lcd.h"
#include "kernel.h"
#include "settings.h"
+#include "status.h"
+
+#ifdef HAVE_LCD_BITMAP
+#define LINE_Y (global_settings.statusbar&&statusbar_enabled?1:0) /* Y position the entry-list starts at */
+#else /* HAVE_LCD_BITMAP */
+#define LINE_Y 0 /* Y position the entry-list starts at */
+#endif /* HAVE_LCD_BITMAP */
playlist_info_t playlist;
@@ -165,7 +172,8 @@ void play_list(char *dir, char *file, int start_index)
/* If file is NULL, the list is in RAM */
if(file) {
lcd_clear_display();
- lcd_puts(0,0,"Loading...");
+ lcd_puts(0,LINE_Y,"Loading...");
+ status_draw();
lcd_update();
playlist.in_ram = false;
} else {
@@ -194,14 +202,16 @@ void play_list(char *dir, char *file, int start_index)
if(global_settings.playlist_shuffle) {
if(!playlist.in_ram) {
- lcd_puts(0,0,"Shuffling...");
+ lcd_puts(0,LINE_Y,"Shuffling...");
+ status_draw();
lcd_update();
}
randomise_playlist( current_tick );
}
if(!playlist.in_ram) {
- lcd_puts(0,0,"Playing... ");
+ lcd_puts(0,LINE_Y,"Playing... ");
+ status_draw();
lcd_update();
}
/* also make the first song get playing */
@@ -287,7 +297,8 @@ void add_indices_to_playlist(void)
next_tick = current_tick + HZ;
snprintf(line, sizeof line, "%d files",
playlist.amount);
- lcd_puts(0,1,line);
+ lcd_puts(0,LINE_Y+1,line);
+ status_draw();
lcd_update();
}
}
@@ -301,7 +312,8 @@ void add_indices_to_playlist(void)
}
if(!playlist.in_ram) {
snprintf(line, sizeof line, "%d files", playlist.amount);
- lcd_puts(0,1,line);
+ lcd_puts(0,LINE_Y+1,line);
+ status_draw();
lcd_update();
close(fd);
}