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/misc.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/misc.c')
-rw-r--r-- | apps/misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/misc.c b/apps/misc.c index 9df6637656..167f7efbd9 100644 --- a/apps/misc.c +++ b/apps/misc.c | |||
@@ -697,7 +697,7 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter) | |||
697 | if (global_settings.fade_on_stop | 697 | if (global_settings.fade_on_stop |
698 | && (audio_stat & AUDIO_STATUS_PLAY)) | 698 | && (audio_stat & AUDIO_STATUS_PLAY)) |
699 | { | 699 | { |
700 | fade(0); | 700 | fade(false, false); |
701 | } | 701 | } |
702 | 702 | ||
703 | if (batt_safe) /* do not save on critical battery */ | 703 | if (batt_safe) /* do not save on critical battery */ |
@@ -774,7 +774,7 @@ bool list_stop_handler(void) | |||
774 | if (!global_settings.party_mode) | 774 | if (!global_settings.party_mode) |
775 | { | 775 | { |
776 | if (global_settings.fade_on_stop) | 776 | if (global_settings.fade_on_stop) |
777 | fade(0); | 777 | fade(false, false); |
778 | bookmark_autobookmark(); | 778 | bookmark_autobookmark(); |
779 | audio_stop(); | 779 | audio_stop(); |
780 | ret = true; /* bookmarking can make a refresh necessary */ | 780 | ret = true; /* bookmarking can make a refresh necessary */ |
@@ -840,7 +840,7 @@ static void car_adapter_mode_processing(bool inserted) | |||
840 | !(audio_status() & AUDIO_STATUS_PAUSE)) | 840 | !(audio_status() & AUDIO_STATUS_PAUSE)) |
841 | { | 841 | { |
842 | if (global_settings.fade_on_stop) | 842 | if (global_settings.fade_on_stop) |
843 | fade(0); | 843 | fade(false, false); |
844 | else | 844 | else |
845 | audio_pause(); | 845 | audio_pause(); |
846 | } | 846 | } |