summaryrefslogtreecommitdiffstats
path: root/apps/menus/display_menu.c
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2007-08-26 21:34:36 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2007-08-26 21:34:36 +0000
commit6109d39469240418b593e4286e46d0bc8163fbbf (patch)
treeaa189c9d2b71b62b70baf608af3d4efd05e2f4d2 /apps/menus/display_menu.c
parent8f9717ae6fa59ea3e837a158fe147c84cbc3468e (diff)
downloadrockbox-6109d39469240418b593e4286e46d0bc8163fbbf.tar.gz
rockbox-6109d39469240418b593e4286e46d0bc8163fbbf.tar.bz2
rockbox-6109d39469240418b593e4286e46d0bc8163fbbf.zip
only build the clipcounter for targets with recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14467 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menus/display_menu.c')
-rw-r--r--apps/menus/display_menu.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/menus/display_menu.c b/apps/menus/display_menu.c
index a523753119..c1e574a974 100644
--- a/apps/menus/display_menu.c
+++ b/apps/menus/display_menu.c
@@ -401,8 +401,10 @@ MENUITEM_SETTING(peak_meter_hold,
&global_settings.peak_meter_hold, peakmeter_callback);
MENUITEM_SETTING(peak_meter_clip_hold,
&global_settings.peak_meter_clip_hold, peakmeter_callback);
-MENUITEM_SETTING(peak_meter_clipcounter,
+#ifdef HAVE_RECORDING
+MENUITEM_SETTING(peak_meter_clipcounter,
&global_settings.peak_meter_clipcounter, NULL);
+#endif
MENUITEM_SETTING(peak_meter_release,
&global_settings.peak_meter_release, peakmeter_callback);
/**
@@ -530,7 +532,10 @@ MENUITEM_FUNCTION(peak_meter_max_item, 0, ID2P(LANG_PM_MAX),
peak_meter_max, NULL, NULL, Icon_NOICON);
MAKE_MENU(peak_meter_menu, ID2P(LANG_PM_MENU), NULL, Icon_NOICON,
&peak_meter_release, &peak_meter_hold,
- &peak_meter_clip_hold, &peak_meter_clipcounter,
+ &peak_meter_clip_hold,
+#ifdef HAVE_RECORDING
+ &peak_meter_clipcounter,
+#endif
&peak_meter_scale_item, &peak_meter_min_item, &peak_meter_max_item);
#endif /* HAVE_LCD_BITMAP */
/* PEAK METER MENU */