From 34bb94618e0bb3ce69e4fa237c23350dac7cbde8 Mon Sep 17 00:00:00 2001 From: gevaerts Date: Mon, 9 Nov 2009 17:51:36 +0000 Subject: [PATCH] Don't define pitch_speed_enum() on MAS3507D. Fixes yellow git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23590 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/skin_engine/skin_tokens.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c index 6eb1759b9..9cd8dfcdb 100644 --- a/apps/gui/skin_engine/skin_tokens.c +++ b/apps/gui/skin_engine/skin_tokens.c @@ -107,6 +107,7 @@ static char* get_dir(char* buf, int buf_size, const char* path, int level) return buf; } +#if (CONFIG_CODEC != MAS3507D) /* A helper to determine the enum value for pitch/speed. When there are two choices (i.e. boolean), return 1 if the value is @@ -142,6 +143,7 @@ static int pitch_speed_enum(int range, int32_t val, int32_t normval) n = (center * val) / normval + 1; return (range <= n) ? (range - 1) : n; } +#endif /* Return the tag found at index i and write its value in buf. The return value is buf if the tag had a value, or NULL if not. -- 2.11.4.GIT