summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_display.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2023-12-08 20:30:59 -0500
committerSolomon Peachy <pizza@shaftnet.org>2024-04-21 18:27:11 -0400
commit7b1dd6b60a1b39468be02bb7a1e71f4be354ce0f (patch)
tree877e3de05638c85d6876b64d536232951e47db88 /apps/gui/skin_engine/skin_display.c
parente8a51569ada3bfd85fc0c93911bd5061ce3b6017 (diff)
downloadrockbox-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/skin_engine/skin_display.c')
-rw-r--r--apps/gui/skin_engine/skin_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c
index 913bdcfbc4..aa2184a407 100644
--- a/apps/gui/skin_engine/skin_display.c
+++ b/apps/gui/skin_engine/skin_display.c
@@ -217,7 +217,7 @@ void draw_progressbar(struct gui_wps *gwps, struct skin_viewport* skin_viewport,
217 else if (pb->type == SKIN_TOKEN_SETTINGBAR) 217 else if (pb->type == SKIN_TOKEN_SETTINGBAR)
218 { 218 {
219 int val, count; 219 int val, count;
220 get_setting_info_for_bar(pb->setting, &count, &val); 220 get_setting_info_for_bar(pb->setting, pb->setting_offset, &count, &val);
221 length = count - 1; 221 length = count - 1;
222 end = val; 222 end = val;
223 } 223 }