mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-11 06:05:21 -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)
|
static bool gui_quickscreen_do_button(struct gui_quickscreen * qs, int button)
|
||||||
{
|
{
|
||||||
int item;
|
int item;
|
||||||
|
bool invert = false;
|
||||||
switch(button)
|
switch(button)
|
||||||
{
|
{
|
||||||
case ACTION_QS_LEFT:
|
case ACTION_QS_LEFT:
|
||||||
item = QUICKSCREEN_LEFT;
|
item = QUICKSCREEN_LEFT;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ACTION_QS_DOWN:
|
|
||||||
case ACTION_QS_DOWNINV:
|
case ACTION_QS_DOWNINV:
|
||||||
|
invert = true; /* fallthrough */
|
||||||
|
case ACTION_QS_DOWN:
|
||||||
item = QUICKSCREEN_BOTTOM;
|
item = QUICKSCREEN_BOTTOM;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
@ -263,7 +265,7 @@ static bool gui_quickscreen_do_button(struct gui_quickscreen * qs, int button)
|
||||||
default:
|
default:
|
||||||
return false;
|
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);
|
talk_qs_option((struct settings_list *)qs->items[item], false);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue