1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Thom Johansen 2006-05-31 11:38:07 +00:00
parent 4f926cce01
commit aa1834ef32

View file

@ -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;