diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2023-12-08 20:30:59 -0500 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-04-21 18:27:11 -0400 |
commit | 7b1dd6b60a1b39468be02bb7a1e71f4be354ce0f (patch) | |
tree | 877e3de05638c85d6876b64d536232951e47db88 /apps/gui/option_select.h | |
parent | e8a51569ada3bfd85fc0c93911bd5061ce3b6017 (diff) | |
download | rockbox-7b1dd6b60a1b39468be02bb7a1e71f4be354ce0f.tar.gz rockbox-7b1dd6b60a1b39468be02bb7a1e71f4be354ce0f.zip |
RFC: Extend skin engine to handle EQ settings
EQ settings are actually an array of 3 ints. I added a skin parameter
token that allows specifying which array element to use.
So instead of this now-incorrect syntax:
%St(0,0,-,-,image,eqbar.bmp,vertical,setting,eq band 1 gain)
You would use:
%St(0,0,-,-,image,eqbar.bmp,vertical,soffset,2,setting,eq peak filter 1)
(the 'gain' is the third element in the eq setting array, thus soffset 2)
Change-Id: Ibda712ab87759efb45420566c967742bcefb513b
Diffstat (limited to 'apps/gui/option_select.h')
-rw-r--r-- | apps/gui/option_select.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/option_select.h b/apps/gui/option_select.h index eabe5825e7..4053603b63 100644 --- a/apps/gui/option_select.h +++ b/apps/gui/option_select.h | |||
@@ -38,7 +38,7 @@ bool option_screen(const struct settings_list *setting, | |||
38 | void option_select_next_val(const struct settings_list *setting, | 38 | void option_select_next_val(const struct settings_list *setting, |
39 | bool previous, bool apply); | 39 | bool previous, bool apply); |
40 | #endif | 40 | #endif |
41 | const char *option_get_valuestring(const struct settings_list *setting, | 41 | const char *option_get_valuestring(const struct settings_list *setting, |
42 | char *buffer, int buf_len, | 42 | char *buffer, int buf_len, |
43 | intptr_t temp_var); | 43 | intptr_t temp_var); |
44 | void option_talk_value(const struct settings_list *setting, int value, bool enqueue); | 44 | void option_talk_value(const struct settings_list *setting, int value, bool enqueue); |
@@ -46,9 +46,9 @@ void option_talk_value(const struct settings_list *setting, int value, bool enqu | |||
46 | /* only use this for int and bool settings */ | 46 | /* only use this for int and bool settings */ |
47 | int option_value_as_int(const struct settings_list *setting); | 47 | int option_value_as_int(const struct settings_list *setting); |
48 | 48 | ||
49 | int get_setting_info_for_bar(const struct settings_list *setting, int *count, int *val); | 49 | int get_setting_info_for_bar(const struct settings_list *setting, int offset, int *count, int *val); |
50 | #ifdef HAVE_TOUCHSCREEN | 50 | #ifdef HAVE_TOUCHSCREEN |
51 | void update_setting_value_from_touch(const struct settings_list *setting, int selection); | 51 | void update_setting_value_from_touch(const struct settings_list *setting, int offset, int selection); |
52 | #endif | 52 | #endif |
53 | 53 | ||
54 | #endif /* _GUI_OPTION_SELECT_H_ */ | 54 | #endif /* _GUI_OPTION_SELECT_H_ */ |