summaryrefslogtreecommitdiff
path: root/apps/radio/radio.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/radio/radio.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/radio/radio.c')
-rw-r--r--apps/radio/radio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/radio/radio.c b/apps/radio/radio.c
index 1764495c7f..bf8ad865dd 100644
--- a/apps/radio/radio.c
+++ b/apps/radio/radio.c
@@ -56,7 +56,7 @@
56#include "statusbar-skinned.h" 56#include "statusbar-skinned.h"
57#include "playback.h" 57#include "playback.h"
58#include "presets.h" 58#include "presets.h"
59#include "skin_engine/wps_internals.h" 59#include "wps.h" /* for wps_state... */
60 60
61#if CONFIG_TUNER 61#if CONFIG_TUNER
62 62
@@ -364,7 +364,9 @@ void radio_screen(void)
364 { 364 {
365 radio_load_presets(global_settings.fmr_file); 365 radio_load_presets(global_settings.fmr_file);
366 } 366 }
367 skin_get_global_state()->id3 = NULL; 367 /* TODO: Can this be moved somewhere else? */
368 get_wps_state()->id3 = NULL;
369 get_wps_state()->nid3 = NULL;
368#ifdef HAVE_ALBUMART 370#ifdef HAVE_ALBUMART
369 radioart_init(true); 371 radioart_init(true);
370#endif 372#endif