diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-01-24 03:14:07 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-01-24 03:14:07 +0000 |
commit | 0c3375648cdd22c341cfb632b66ae673a82aa52c (patch) | |
tree | 5fbf21d08bc616a63759f265b4f5365c85ea6b42 /apps/settings.c | |
parent | 228d62dd18906eaef814ec63cf888b30a94cd1c8 (diff) |
allow int settings to call a function to get the default value (Fixes the contrast problem on archos)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12102 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/settings.c b/apps/settings.c index 4280ff9f7a..45e2a4e99f 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -851,7 +851,9 @@ void settings_reset(void) { { case F_T_INT: case F_T_UINT: - if (settings[i].flags&F_T_SOUND) + if (settings[i].flags&F_DEF_ISFUNC) + *(int*)settings[i].setting = settings[i].default_val.func(); + else if (settings[i].flags&F_T_SOUND) *(int*)settings[i].setting = sound_default(settings[i].sound_setting->setting); else *(int*)settings[i].setting = settings[i].default_val.int_; |