diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2002-09-27 10:18:48 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2002-09-27 10:18:48 +0000 |
| commit | f7c3ffa53797eadb0264eb26efc41d58942379a3 (patch) | |
| tree | 3ec876a8f9e9447312bcae86b2ca2fd724a0fd3e /apps | |
| parent | f11702921fc137fb9eb08b3311bc4264ed6a2fe2 (diff) | |
| download | rockbox-f7c3ffa53797eadb0264eb26efc41d58942379a3.zip rockbox-f7c3ffa53797eadb0264eb26efc41d58942379a3.tar.gz rockbox-f7c3ffa53797eadb0264eb26efc41d58942379a3.tar.bz2 rockbox-f7c3ffa53797eadb0264eb26efc41d58942379a3.tar.xz | |
peakmeter is lcd-bitmap only
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2438 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/settings_menu.c | 2 | ||||
| -rw-r--r-- | apps/wps-display.c | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 643f5be..3cb270d 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c @@ -36,7 +36,9 @@ #include "powermgmt.h" #include "rtc.h" #include "ata.h" +#ifdef HAVE_LCD_BITMAP #include "peakmeter.h" +#endif #include "lang.h" static bool contrast(void) diff --git a/apps/wps-display.c b/apps/wps-display.c index a898085..c64a1aa 100644 --- a/apps/wps-display.c +++ b/apps/wps-display.c @@ -527,7 +527,7 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, bool refresh_all) struct format_flags flags; bool scroll_active = false; int i; - +#ifdef HAVE_LCD_BITMAP /* to find out wether the peak meter is enabled we assume it wasn't until we find a line that contains the peak meter. We can't use peak_meter_enabled itself @@ -536,7 +536,7 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, bool refresh_all) or sleep is called but who knows...) */ bool enable_pm = false; - +#endif if (!id3) { lcd_stop_scroll(); @@ -611,10 +611,11 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, bool refresh_all) } } } - +#ifdef HAVE_LCD_BITMAP /* Now we know wether the peak meter is used. So we can enable / disable the peak meter thread */ peak_meter_enabled = enable_pm; +#endif lcd_update(); return true; |