From 0212de4c8d67337ccae180d52f09c26c236b256a Mon Sep 17 00:00:00 2001 From: Jeffrey Goode Date: Wed, 11 Nov 2009 17:38:00 +0000 Subject: Add crossfade feature tag, update manual, fix crossfade WPS tag behavior git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23610 a1c6a512-1295-4272-9138-f99709370657 --- apps/features.txt | 4 ++++ apps/gui/skin_engine/skin_tokens.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/features.txt b/apps/features.txt index 14204df..d3e433a 100644 --- a/apps/features.txt +++ b/apps/features.txt @@ -42,6 +42,10 @@ button_light buttonlight_brightness #endif +#if defined(HAVE_CROSSFADE) +crossfade +#endif + #if defined(HAVE_DIRCACHE) dircache #endif diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c index a456bbc..d4adfa8 100644 --- a/apps/gui/skin_engine/skin_tokens.c +++ b/apps/gui/skin_engine/skin_tokens.c @@ -770,10 +770,10 @@ const char *get_token_value(struct gui_wps *gwps, if (intval) *intval = global_settings.crossfade + 1; snprintf(buf, buf_size, "%d", global_settings.crossfade); - return buf; #else - return NULL; + snprintf(buf, buf_size, "%d", 0); #endif + return buf; case WPS_TOKEN_REPLAYGAIN: { -- cgit v1.1