From bb572c44121e48d9d54411dff9e0f8dce015e550 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Fri, 27 Sep 2002 09:31:31 +0000 Subject: [PATCH] Philip Pertermanns peak meter git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2436 a1c6a512-1295-4272-9138-f99709370657 --- apps/lang/english.lang | 30 +++++++++++++++++ apps/settings.c | 27 +++++++++++++++- apps/settings.h | 4 +++ apps/settings_menu.c | 66 ++++++++++++++++++++++++++++++++++++++ apps/wps-display.c | 53 ++++++++++++++++++++++++++++-- apps/wps.c | 24 +++++++++++++- docs/CUSTOM_WPS_FORMAT | 2 ++ firmware/drivers/mas.h | 2 ++ uisimulator/win32/Makefile | 5 ++- uisimulator/x11/Makefile | 5 ++- 10 files changed, 212 insertions(+), 6 deletions(-) diff --git a/apps/lang/english.lang b/apps/lang/english.lang index 83ccf037da..afea869bee 100644 --- a/apps/lang/english.lang +++ b/apps/lang/english.lang @@ -834,3 +834,33 @@ id: LANG_SET_BOOL_NO desc: bool false representation eng: "No" new: + +id: LANG_PM_MENU +desc: in the display menu +eng: "Peak meter" +new: + +id: LANG_PM_RELEASE +desc: in the peak meter menu +eng: "Peak release" +new: + +id: LANG_PM_PEAK_HOLD +desc: in the peak meter menu +eng: "Peak hold time" +new: + +id: LANG_PM_CLIP_HOLD +desc: in the peak meter menu +eng: "Clip hold time" +new: + +id: LANG_PM_ETERNAL +desc: in the peak meter menu +eng: "eternal" +new: + +id: LANG_PM_UNITS_PER_READ +desc: in the peak meter menu +eng: "Units per read" +new: diff --git a/apps/settings.c b/apps/settings.c index 31d4f1a82b..1b4f864ec5 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -53,6 +53,12 @@ char rockboxdir[] = ROCKBOX_DIR; /* config/font/data file directory */ #define CONFIG_BLOCK_SIZE 512 #define RTC_BLOCK_SIZE 44 +#ifdef HAVE_LCD_BITMAP +#define MAX_LINES 10 +#else +#define MAX_LINES 2 +#endif + /******************************************** Config block as saved on the battery-packed RTC user RAM memory block @@ -80,6 +86,9 @@ offset abs 0x16 0x2a <(int) Byte offset into resume file> 0x1a 0x2e