summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_tokens.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-10-02 20:44:27 +0100
committerAidan MacDonald <amachronic@protonmail.com>2022-10-18 12:56:28 +0100
commit13da1ba785b1f06bacae06da422ac2cf2ea5eb76 (patch)
tree0f6b10e05ae7edbf2220651217779e699802be21 /apps/gui/skin_engine/skin_tokens.c
parent33a47e4a494764802f63b4b456dbd113df250b37 (diff)
downloadrockbox-13da1ba785b1f06bacae06da422ac2cf2ea5eb76.tar.gz
rockbox-13da1ba785b1f06bacae06da422ac2cf2ea5eb76.zip
Remove is_fading from the global WPS state
Turns out it was never assigned and always false. Change-Id: I8cd9118682e7a0785c262d4c0594f8f51412c18b
Diffstat (limited to 'apps/gui/skin_engine/skin_tokens.c')
-rw-r--r--apps/gui/skin_engine/skin_tokens.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c
index 27022b87d1..0101a5e01e 100644
--- a/apps/gui/skin_engine/skin_tokens.c
+++ b/apps/gui/skin_engine/skin_tokens.c
@@ -1044,8 +1044,7 @@ const char *get_token_value(struct gui_wps *gwps,
1044 int mode = 1; /* stop */ 1044 int mode = 1; /* stop */
1045 if (status == STATUS_PLAY) 1045 if (status == STATUS_PLAY)
1046 mode = 2; /* play */ 1046 mode = 2; /* play */
1047 if (state->is_fading || 1047 if (status == STATUS_PAUSE && !status_get_ffmode())
1048 (status == STATUS_PAUSE && !status_get_ffmode()))
1049 mode = 3; /* pause */ 1048 mode = 3; /* pause */
1050 else 1049 else
1051 { /* ff / rwd */ 1050 { /* ff / rwd */