summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2006-05-31 11:38:07 +0000
committerThom Johansen <thomj@rockbox.org>2006-05-31 11:38:07 +0000
commitaa1834ef323a7eb368578dc25d06bc931fb89ea7 (patch)
tree4d4d7c4fb292d2315c0a2580820cd8eb96b7f07b /apps
parent4f926cce01cb45139b29d786cf14af9bc247d06a (diff)
downloadrockbox-aa1834ef323a7eb368578dc25d06bc931fb89ea7.tar.gz
rockbox-aa1834ef323a7eb368578dc25d06bc931fb89ea7.tar.bz2
rockbox-aa1834ef323a7eb368578dc25d06bc931fb89ea7.zip
Allow pitch ratio to hit top and bottom values when using button repeat.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10027 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/screens.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/screens.c b/apps/screens.c
index 401fe3d28a..20a0b58749 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -433,6 +433,8 @@ bool pitch_screen(void)
case PITCH_UP | BUTTON_REPEAT:
if ( pitch < 1990 )
pitch += 10;
+ else
+ pitch = 2000;
sound_set_pitch(pitch);
break;
@@ -445,6 +447,8 @@ bool pitch_screen(void)
case PITCH_DOWN | BUTTON_REPEAT:
if ( pitch > 510 )
pitch -= 10;
+ else
+ pitch = 500;
sound_set_pitch(pitch);
break;