RTL: Fix context regarded as bit-field value, resulted in wrong contexts get

keys swapped

- Also RTL swap keys for CONTEXT_LIST


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23019 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Tomer Shalev 2009-10-08 22:19:36 +00:00
parent 67059947a9
commit 694ea7e734

View file

@ -96,7 +96,8 @@ static int button_flip_horizontally(int context, int button)
int newbutton;
if (!(lang_is_rtl() && ((context == CONTEXT_STD) ||
(context & CONTEXT_TREE) || (context & CONTEXT_MAINMENU))))
(context == CONTEXT_TREE) || (context == CONTEXT_LIST) ||
(context == CONTEXT_MAINMENU))))
{
return button;
}