From 47ba627f61e3a41bfb3c9458a8f7a684a45ac05a Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Fri, 1 Oct 2004 07:39:34 +0000 Subject: 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 --- apps/wps.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps') 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); -- cgit v1.2.3