diff options
Diffstat (limited to 'apps/gui/wps.c')
-rw-r--r-- | apps/gui/wps.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c index 837621fb44..4d22a83fd6 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c | |||
@@ -115,7 +115,7 @@ static void update_non_static(void) | |||
115 | skin_update(WPS, i, SKIN_REFRESH_NON_STATIC); | 115 | skin_update(WPS, i, SKIN_REFRESH_NON_STATIC); |
116 | } | 116 | } |
117 | 117 | ||
118 | void pause_action(bool may_fade, bool updatewps) | 118 | void pause_action(bool updatewps) |
119 | { | 119 | { |
120 | /* Do audio first, then update, unless skin were to use its local | 120 | /* Do audio first, then update, unless skin were to use its local |
121 | status in which case, reverse it */ | 121 | status in which case, reverse it */ |
@@ -132,11 +132,9 @@ void pause_action(bool may_fade, bool updatewps) | |||
132 | - global_settings.pause_rewind * 1000; | 132 | - global_settings.pause_rewind * 1000; |
133 | audio_ff_rewind(newpos > 0 ? newpos : 0); | 133 | audio_ff_rewind(newpos > 0 ? newpos : 0); |
134 | } | 134 | } |
135 | |||
136 | (void)may_fade; | ||
137 | } | 135 | } |
138 | 136 | ||
139 | void unpause_action(bool may_fade, bool updatewps) | 137 | void unpause_action(bool updatewps) |
140 | { | 138 | { |
141 | /* Do audio first, then update, unless skin were to use its local | 139 | /* Do audio first, then update, unless skin were to use its local |
142 | status in which case, reverse it */ | 140 | status in which case, reverse it */ |
@@ -144,8 +142,6 @@ void unpause_action(bool may_fade, bool updatewps) | |||
144 | 142 | ||
145 | if (updatewps) | 143 | if (updatewps) |
146 | update_non_static(); | 144 | update_non_static(); |
147 | |||
148 | (void)may_fade; | ||
149 | } | 145 | } |
150 | 146 | ||
151 | static bool update_onvol_change(enum screen_type screen) | 147 | static bool update_onvol_change(enum screen_type screen) |
@@ -578,12 +574,12 @@ void wps_do_playpause(bool updatewps) | |||
578 | if ( state->paused ) | 574 | if ( state->paused ) |
579 | { | 575 | { |
580 | state->paused = false; | 576 | state->paused = false; |
581 | unpause_action(true, updatewps); | 577 | unpause_action(updatewps); |
582 | } | 578 | } |
583 | else | 579 | else |
584 | { | 580 | { |
585 | state->paused = true; | 581 | state->paused = true; |
586 | pause_action(true, updatewps); | 582 | pause_action(updatewps); |
587 | settings_save(); | 583 | settings_save(); |
588 | #if !defined(HAVE_SW_POWEROFF) | 584 | #if !defined(HAVE_SW_POWEROFF) |
589 | call_storage_idle_notifys(true); /* make sure resume info is saved */ | 585 | call_storage_idle_notifys(true); /* make sure resume info is saved */ |