mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Fix Quickscreen ACTION_QS_DOWNINV button to reverse direction of down entry which was broken with r17315.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19733 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
04dcf117a1
commit
36d8b7eebf
1 changed files with 4 additions and 2 deletions
|
|
@ -245,14 +245,16 @@ static void talk_qs_option(struct settings_list *opt, bool enqueue)
|
|||
static bool gui_quickscreen_do_button(struct gui_quickscreen * qs, int button)
|
||||
{
|
||||
int item;
|
||||
bool invert = false;
|
||||
switch(button)
|
||||
{
|
||||
case ACTION_QS_LEFT:
|
||||
item = QUICKSCREEN_LEFT;
|
||||
break;
|
||||
|
||||
case ACTION_QS_DOWN:
|
||||
case ACTION_QS_DOWNINV:
|
||||
invert = true; /* fallthrough */
|
||||
case ACTION_QS_DOWN:
|
||||
item = QUICKSCREEN_BOTTOM;
|
||||
break;
|
||||
|
||||
|
|
@ -263,7 +265,7 @@ static bool gui_quickscreen_do_button(struct gui_quickscreen * qs, int button)
|
|||
default:
|
||||
return false;
|
||||
}
|
||||
option_select_next_val((struct settings_list *)qs->items[item], false, true);
|
||||
option_select_next_val((struct settings_list *)qs->items[item], invert, true);
|
||||
talk_qs_option((struct settings_list *)qs->items[item], false);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue