mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Fix improper shift and mask order causing FS#6842
Set start_selected if exiting do_menu() early from more places git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12826 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7d7135165d
commit
b5e587c081
2 changed files with 9 additions and 5 deletions
|
@ -61,6 +61,7 @@ struct menu_func {
|
|||
#define MENU_COUNT_MASK 0xFFF
|
||||
#define MENU_COUNT_SHIFT 8
|
||||
#define MENU_ITEM_COUNT(c) ((c&MENU_COUNT_MASK)<<MENU_COUNT_SHIFT)
|
||||
#define MENU_GET_COUNT(flags) ((flags>>MENU_COUNT_SHIFT)&MENU_COUNT_MASK)
|
||||
|
||||
struct menu_item_ex {
|
||||
unsigned int flags; /* above defines */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue