diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-10-02 21:05:32 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-10-18 12:56:28 +0100 |
commit | 14fbefdf390d397a13b31e2b58b4615d794ff709 (patch) | |
tree | 6718352d2d32505f6782c26348edec739aeaa0f9 /apps/gui/skin_engine/skin_render.c | |
parent | 13da1ba785b1f06bacae06da422ac2cf2ea5eb76 (diff) | |
download | rockbox-14fbefdf390d397a13b31e2b58b4615d794ff709.tar.gz rockbox-14fbefdf390d397a13b31e2b58b4615d794ff709.zip |
Move skin global state to the WPS
This state is actually specific to the WPS and it makes more
sense to put it there.
Change-Id: I5dfee237fdcbae944806501ff3127a930820d68a
Diffstat (limited to 'apps/gui/skin_engine/skin_render.c')
-rw-r--r-- | apps/gui/skin_engine/skin_render.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_render.c b/apps/gui/skin_engine/skin_render.c index 2238bd9bec..e5d2078177 100644 --- a/apps/gui/skin_engine/skin_render.c +++ b/apps/gui/skin_engine/skin_render.c | |||
@@ -50,6 +50,7 @@ | |||
50 | #include "root_menu.h" | 50 | #include "root_menu.h" |
51 | #include "misc.h" | 51 | #include "misc.h" |
52 | #include "list.h" | 52 | #include "list.h" |
53 | #include "wps.h" | ||
53 | 54 | ||
54 | 55 | ||
55 | #define MAX_LINE 1024 | 56 | #define MAX_LINE 1024 |
@@ -956,8 +957,8 @@ void skin_render_playlistviewer(struct playlistviewer* viewer, | |||
956 | else | 957 | else |
957 | #endif | 958 | #endif |
958 | { | 959 | { |
959 | struct cuesheet *cue = skin_get_global_state()->id3 ? | 960 | struct wps_state *state = get_wps_state(); |
960 | skin_get_global_state()->id3->cuesheet : NULL; | 961 | struct cuesheet *cue = state->id3 ? state->id3->cuesheet : NULL; |
961 | cur_pos = playlist_get_display_index(); | 962 | cur_pos = playlist_get_display_index(); |
962 | max = playlist_amount()+1; | 963 | max = playlist_amount()+1; |
963 | if (cue) | 964 | if (cue) |