summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_engine.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-10-02 21:05:32 +0100
committerAidan MacDonald <amachronic@protonmail.com>2022-10-18 12:56:28 +0100
commit14fbefdf390d397a13b31e2b58b4615d794ff709 (patch)
tree6718352d2d32505f6782c26348edec739aeaa0f9 /apps/gui/skin_engine/skin_engine.c
parent13da1ba785b1f06bacae06da422ac2cf2ea5eb76 (diff)
downloadrockbox-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_engine.c')
-rw-r--r--apps/gui/skin_engine/skin_engine.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/apps/gui/skin_engine/skin_engine.c b/apps/gui/skin_engine/skin_engine.c
index a3ad85fd6e..c007ed35d4 100644
--- a/apps/gui/skin_engine/skin_engine.c
+++ b/apps/gui/skin_engine/skin_engine.c
@@ -53,7 +53,6 @@ static bool skins_initialised = false;
53static char* get_skin_filename(char *buf, size_t buf_size, 53static char* get_skin_filename(char *buf, size_t buf_size,
54 enum skinnable_screens skin, enum screen_type screen); 54 enum skinnable_screens skin, enum screen_type screen);
55 55
56struct wps_state wps_state = { .id3 = NULL };
57static struct gui_skin_helper { 56static struct gui_skin_helper {
58 int (*preproccess)(enum screen_type screen, struct wps_data *data); 57 int (*preproccess)(enum screen_type screen, struct wps_data *data);
59 int (*postproccess)(enum screen_type screen, struct wps_data *data); 58 int (*postproccess)(enum screen_type screen, struct wps_data *data);
@@ -310,11 +309,6 @@ struct gui_wps *skin_get_gwps(enum skinnable_screens skin, enum screen_type scre
310 return &skins[skin][screen].gui_wps; 309 return &skins[skin][screen].gui_wps;
311} 310}
312 311
313struct wps_state *skin_get_global_state(void)
314{
315 return &wps_state;
316}
317
318/* This is called to find out if we the screen needs a full update. 312/* This is called to find out if we the screen needs a full update.
319 * if true you MUST do a full update as the next call will return false */ 313 * if true you MUST do a full update as the next call will return false */
320bool skin_do_full_update(enum skinnable_screens skin, 314bool skin_do_full_update(enum skinnable_screens skin,