summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-10-01 07:39:34 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-10-01 07:39:34 +0000
commit47ba627f61e3a41bfb3c9458a8f7a684a45ac05a (patch)
tree1d4dbb0e4e777f9c31f796d04b626d509bd886b1
parent1e570da2809f1735f679d0db7254c1e595047116 (diff)
Patch #1038325 by Markus Braun, prevents WPS from setting the volume higher than 100
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5140 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/wps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/wps.c b/apps/wps.c
index d5c3d82eca..040c7a6de0 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -128,6 +128,8 @@ static bool setvol(void)
{
if (global_settings.volume < mpeg_sound_min(SOUND_VOLUME))
global_settings.volume = mpeg_sound_min(SOUND_VOLUME);
+ if (global_settings.volume > mpeg_sound_max(SOUND_VOLUME))
+ global_settings.volume = mpeg_sound_max(SOUND_VOLUME);
mpeg_sound_set(SOUND_VOLUME, global_settings.volume);
status_draw(false);
wps_refresh(id3, nid3, 0, WPS_REFRESH_NON_STATIC);