summaryrefslogtreecommitdiff
path: root/apps/gui/gwps-common.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-05-30 17:57:32 +0000
committerNils Wallménius <nils@rockbox.org>2007-05-30 17:57:32 +0000
commitf46657ec5a23e9ff440b603fbf8ffd55e6aa4e84 (patch)
treed6bb995283343f4a8e9830827c475e16f3bdc646 /apps/gui/gwps-common.c
parentdfb071d92ece27951dd2b3e17629ec61cd619460 (diff)
downloadrockbox-f46657ec5a23e9ff440b603fbf8ffd55e6aa4e84.tar.gz
rockbox-f46657ec5a23e9ff440b603fbf8ffd55e6aa4e84.zip
Move the setvol wrapper function to misc.c and use it in more places instead of doing the same checks everywhere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13524 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r--apps/gui/gwps-common.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 2cdb92d964..2e8f7841c0 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -126,16 +126,6 @@ void fade(bool fade_in)
126 } 126 }
127} 127}
128 128
129/* set volume */
130void setvol(void)
131{
132 if (global_settings.volume < sound_min(SOUND_VOLUME))
133 global_settings.volume = sound_min(SOUND_VOLUME);
134 if (global_settings.volume > sound_max(SOUND_VOLUME))
135 global_settings.volume = sound_max(SOUND_VOLUME);
136 sound_set_volume(global_settings.volume);
137 settings_save();
138}
139/* return true if screen restore is needed 129/* return true if screen restore is needed
140 return false otherwise 130 return false otherwise
141*/ 131*/