From f7c3ffa53797eadb0264eb26efc41d58942379a3 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 27 Sep 2002 10:18:48 +0000 Subject: peakmeter is lcd-bitmap only git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2438 a1c6a512-1295-4272-9138-f99709370657 --- apps/settings_menu.c | 2 ++ 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 643f5be542..3cb270dafe 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 a8980855e4..c64a1aa7dd 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; -- cgit v1.2.3