diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-06-23 02:45:55 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-06-23 02:45:55 +0000 |
commit | 4982b87b9cfc98a40a6fb7b837632f86e483390f (patch) | |
tree | d87f52238187fb2187d35cad86085e1f50cbd336 /apps/gui/gwps.c | |
parent | 0ac9839ffce2024d1d9d0598c77a8860fa708a5d (diff) | |
download | rockbox-4982b87b9cfc98a40a6fb7b837632f86e483390f.tar.gz rockbox-4982b87b9cfc98a40a6fb7b837632f86e483390f.zip |
fix FS#9098 - fade was updating the WPS sometimes when it shouldnt. also minor code policing.. use true/false instead of 1/0 for calls to fade()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17757 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps.c')
-rw-r--r-- | apps/gui/gwps.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c index 26d31c65bd..5426c937c0 100644 --- a/apps/gui/gwps.c +++ b/apps/gui/gwps.c | |||
@@ -326,7 +326,7 @@ long gui_wps_show(void) | |||
326 | { | 326 | { |
327 | wps_state.paused = false; | 327 | wps_state.paused = false; |
328 | if ( global_settings.fade_on_stop ) | 328 | if ( global_settings.fade_on_stop ) |
329 | fade(1); | 329 | fade(true, true); |
330 | else | 330 | else |
331 | audio_resume(); | 331 | audio_resume(); |
332 | } | 332 | } |
@@ -334,7 +334,7 @@ long gui_wps_show(void) | |||
334 | { | 334 | { |
335 | wps_state.paused = true; | 335 | wps_state.paused = true; |
336 | if ( global_settings.fade_on_stop ) | 336 | if ( global_settings.fade_on_stop ) |
337 | fade(0); | 337 | fade(false, true); |
338 | else | 338 | else |
339 | audio_pause(); | 339 | audio_pause(); |
340 | settings_save(); | 340 | settings_save(); |
@@ -712,7 +712,7 @@ long gui_wps_show(void) | |||
712 | status_set_audio(false); | 712 | status_set_audio(false); |
713 | #endif | 713 | #endif |
714 | if (global_settings.fade_on_stop) | 714 | if (global_settings.fade_on_stop) |
715 | fade(0); | 715 | fade(false, true); |
716 | 716 | ||
717 | FOR_NB_SCREENS(i) | 717 | FOR_NB_SCREENS(i) |
718 | gui_wps[i].display->stop_scroll(); | 718 | gui_wps[i].display->stop_scroll(); |