diff options
| author | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-07-23 23:01:20 +0000 |
|---|---|---|
| committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-07-23 23:01:20 +0000 |
| commit | b1403ee024f81ced657261441571ee5e8bab71ce (patch) | |
| tree | 3a7e1651d37bd35e801a331416654760cb61a075 /apps/settings.c | |
| parent | 15d04fdb00e7f94aef49cf9a70e73c5a46e21536 (diff) | |
| download | rockbox-b1403ee024f81ced657261441571ee5e8bab71ce.zip rockbox-b1403ee024f81ced657261441571ee5e8bab71ce.tar.gz rockbox-b1403ee024f81ced657261441571ee5e8bab71ce.tar.bz2 rockbox-b1403ee024f81ced657261441571ee5e8bab71ce.tar.xz | |
New way of defining menus and options allows to declare them static const, which saves the code to runtime-assemble them. Rockbox just got 6 KB smaller.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4931 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
| -rw-r--r-- | apps/settings.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/settings.c b/apps/settings.c index 4c1f8af..31d9232 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -1390,7 +1390,7 @@ bool set_int(char* string, code. */ bool set_option(char* string, void* variable, enum optiontype type, - struct opt_items* options, int numoptions, void (*function)(int)) + const struct opt_items* options, int numoptions, void (*function)(int)) { bool done = false; int button; @@ -1416,7 +1416,7 @@ bool set_option(char* string, void* variable, enum optiontype type, while ( !done ) { index = type==INT ? *intvar : (int)*boolvar; - lcd_puts(0, 1, options[index].string); + lcd_puts(0, 1, P2STR(options[index].string)); if (global_settings.talk_menu && index != oldindex) { talk_id(options[index].voice_id, false); |