forked from len0rd/rockbox
Fix peakmeter from delaying the initial display of the wps. Also change HZ/100 to TIMEOUT_NOBLOCK which is more appropriater in the get_action() call below.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23625 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6d93285087
commit
2e82199fed
1 changed files with 5 additions and 2 deletions
|
@ -745,7 +745,10 @@ long gui_wps_show(void)
|
||||||
button = BUTTON_NONE;
|
button = BUTTON_NONE;
|
||||||
while (TIME_BEFORE(current_tick, next_big_refresh)) {
|
while (TIME_BEFORE(current_tick, next_big_refresh)) {
|
||||||
button = get_action(CONTEXT_WPS|ALLOW_SOFTLOCK,TIMEOUT_NOBLOCK);
|
button = get_action(CONTEXT_WPS|ALLOW_SOFTLOCK,TIMEOUT_NOBLOCK);
|
||||||
if (button != ACTION_NONE) {
|
/* check for restore to not let the peakmeter delay the
|
||||||
|
* initial draw of the wps, don't delay handling of button
|
||||||
|
* presses either */
|
||||||
|
if (button != ACTION_NONE || restore) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
peak_meter_peek();
|
peak_meter_peek();
|
||||||
|
@ -769,7 +772,7 @@ long gui_wps_show(void)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
button = get_action(CONTEXT_WPS|ALLOW_SOFTLOCK,
|
button = get_action(CONTEXT_WPS|ALLOW_SOFTLOCK,
|
||||||
restore ? HZ/100 : HZ/5);
|
restore ? TIMEOUT_NOBLOCK : HZ/5);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Exit if audio has stopped playing. This happens e.g. at end of
|
/* Exit if audio has stopped playing. This happens e.g. at end of
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue