diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-11-30 12:27:52 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-12-04 11:19:57 -0500 |
commit | 1e6c8d2ea684e8a8e7a5f2cc08858c2ba2c15387 (patch) | |
tree | 5be985909f1c985f6f433d8934c92ad91f6aa0d4 /apps/gui/skin_engine/skin_touchsupport.c | |
parent | 4ff97ae07c9b7beed4c8c9bf965e2ba679d05a20 (diff) | |
download | rockbox-1e6c8d2ea684e8a8e7a5f2cc08858c2ba2c15387.tar.gz rockbox-1e6c8d2ea684e8a8e7a5f2cc08858c2ba2c15387.zip |
skin engine: Settings ID to pointer conversions
Convert %St tag to operate on settings pointers instead of IDs.
Change-Id: Iabf4c280be82b495a64b560b59620fb477e0c738
Diffstat (limited to 'apps/gui/skin_engine/skin_touchsupport.c')
-rw-r--r-- | apps/gui/skin_engine/skin_touchsupport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_touchsupport.c b/apps/gui/skin_engine/skin_touchsupport.c index 77ab30d675..27b82e6608 100644 --- a/apps/gui/skin_engine/skin_touchsupport.c +++ b/apps/gui/skin_engine/skin_touchsupport.c | |||
@@ -313,9 +313,9 @@ int skin_get_touchaction(struct gui_wps *gwps, int* edge_offset) | |||
313 | if (bar && edge_offset) | 313 | if (bar && edge_offset) |
314 | { | 314 | { |
315 | int val, count; | 315 | int val, count; |
316 | get_setting_info_for_bar(bar->setting_id, &count, &val); | 316 | get_setting_info_for_bar(bar->setting, &count, &val); |
317 | val = *edge_offset * count / 1000; | 317 | val = *edge_offset * count / 1000; |
318 | update_setting_value_from_touch(bar->setting_id, val); | 318 | update_setting_value_from_touch(bar->setting, val); |
319 | } | 319 | } |
320 | } | 320 | } |
321 | break; | 321 | break; |