Save volume changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1764 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6ee90d9366
commit
70662fcad4
1 changed files with 4 additions and 0 deletions
|
@ -487,6 +487,7 @@ int wps_show(void)
|
|||
global_settings.volume = mpeg_sound_max(SOUND_VOLUME);
|
||||
mpeg_sound_set(SOUND_VOLUME, global_settings.volume);
|
||||
status_draw();
|
||||
settings_save();
|
||||
break;
|
||||
|
||||
#ifdef HAVE_RECORDER_KEYPAD
|
||||
|
@ -506,6 +507,7 @@ int wps_show(void)
|
|||
global_settings.volume = mpeg_sound_min(SOUND_VOLUME);
|
||||
mpeg_sound_set(SOUND_VOLUME, global_settings.volume);
|
||||
status_draw();
|
||||
settings_save();
|
||||
break;
|
||||
|
||||
case BUTTON_LEFT | BUTTON_REPEAT:
|
||||
|
@ -624,6 +626,7 @@ int wps_show(void)
|
|||
if(global_settings.volume < mpeg_sound_min(SOUND_VOLUME))
|
||||
global_settings.volume = mpeg_sound_min(SOUND_VOLUME);
|
||||
mpeg_sound_set(SOUND_VOLUME, global_settings.volume);
|
||||
settings_save();
|
||||
break;
|
||||
|
||||
case BUTTON_MENU | BUTTON_RIGHT:
|
||||
|
@ -633,6 +636,7 @@ int wps_show(void)
|
|||
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);
|
||||
settings_save();
|
||||
break;
|
||||
|
||||
case BUTTON_MENU | BUTTON_ON:
|
||||
|
|
Loading…
Reference in a new issue