From 8e1a00ccb290aacc5236698ea9159a377c822ec6 Mon Sep 17 00:00:00 2001 From: Robert Hak Date: Sat, 14 Sep 2002 06:03:51 +0000 Subject: added Lee Marlow's get_option() wrap patch git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2293 a1c6a512-1295-4272-9138-f99709370657 --- apps/settings.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps') diff --git a/apps/settings.c b/apps/settings.c index ce2b28f16b..82de1663bf 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -707,6 +707,8 @@ void set_option(char* string, int* variable, char* options[], #endif if ( *variable < (numoptions-1) ) (*variable)++; + else + (*variable) -= (numoptions-1); break; #ifdef HAVE_RECORDER_KEYPAD @@ -718,6 +720,8 @@ void set_option(char* string, int* variable, char* options[], #endif if ( *variable > 0 ) (*variable)--; + else + (*variable) += (numoptions-1); break; #ifdef HAVE_RECORDER_KEYPAD -- cgit v1.2.3