diff options
author | Robert Hak <adiamas@rockbox.org> | 2002-09-14 06:03:51 +0000 |
---|---|---|
committer | Robert Hak <adiamas@rockbox.org> | 2002-09-14 06:03:51 +0000 |
commit | 8e1a00ccb290aacc5236698ea9159a377c822ec6 (patch) | |
tree | 6385fe9f23ed5eb69fa39ee1c69e24fb89bf9ce5 /apps | |
parent | f269b0cf4d88750f4cb9b7817d4798b0c3c941bc (diff) |
added Lee Marlow's get_option() wrap patch
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2293 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/settings.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |