forked from len0rd/rockbox
update the display after getting a bit too close to the touchscreen instead of just asking it nicely to change volume!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22436 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7b4d709f9d
commit
5b349e3cfa
1 changed files with 6 additions and 1 deletions
|
@ -630,6 +630,7 @@ int wps_get_touchaction(struct wps_data *data)
|
||||||
break;
|
break;
|
||||||
case WPS_TOUCHREGION_VOLUME:
|
case WPS_TOUCHREGION_VOLUME:
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
const int min_vol = sound_min(SOUND_VOLUME);
|
const int min_vol = sound_min(SOUND_VOLUME);
|
||||||
const int max_vol = sound_max(SOUND_VOLUME);
|
const int max_vol = sound_max(SOUND_VOLUME);
|
||||||
if(r->width > r->height)
|
if(r->width > r->height)
|
||||||
|
@ -643,7 +644,11 @@ int wps_get_touchaction(struct wps_data *data)
|
||||||
|
|
||||||
global_settings.volume += min_vol;
|
global_settings.volume += min_vol;
|
||||||
setvol();
|
setvol();
|
||||||
break;
|
FOR_NB_SCREENS(i)
|
||||||
|
{
|
||||||
|
gui_wps[i].data->button_time_volume = current_tick;
|
||||||
|
}
|
||||||
|
return ACTION_REDRAW;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue