Fixed bug in menu which caused crash with page down

This commit is contained in:
fabio.olimpieri 2014-01-19 21:05:51 +00:00
parent ac2eb0cf1c
commit aff20a44cc
2 changed files with 6 additions and 5 deletions

View File

@ -118,9 +118,9 @@ static const char *screen_messages[] = {
/*05*/ " ", /*05*/ " ",
/*06*/ "Buffer resolution", /*06*/ "Buffer resolution",
/*07*/ "^|640X480|320X240", /*07*/ "^|640X480|320X240",
/*08*/ " ", /*08* " ",
/*09 "576p video mode",*/ *09* "576p video mode",
/*10 "^|on|off",*/ *10* "^|on|off",*/
NULL NULL
}; };
@ -139,7 +139,7 @@ static const char *input_messages[] = {
/*11*/ "^|On|Off", /*11*/ "^|On|Off",
/*12*/ "Rumble", /*12*/ "Rumble",
/*13*/ "^|On|Off", /*13*/ "^|On|Off",
NULL, NULL
}; };
static const char *microdrive_messages[] = { static const char *microdrive_messages[] = {
@ -188,7 +188,7 @@ static const char *help_messages[] = {
/*12*/ "#2 http://wiibrew.org/wiki/FBZX_Wii", /*12*/ "#2 http://wiibrew.org/wiki/FBZX_Wii",
/*13*/ "#2 ", /*13*/ "#2 ",
/*14*/ "OK", /*14*/ "OK",
NULL, NULL
}; };
static const char *confs_messages[] = { static const char *confs_messages[] = {

View File

@ -816,6 +816,7 @@ static void select_next(menu_t *p_menu, int dx, int dy, int cicle)
p_menu->cur_sel = get_next_seq_y(p_menu, p_menu->cur_sel, dy, cicle); p_menu->cur_sel = get_next_seq_y(p_menu, p_menu->cur_sel, dy, cicle);
next = get_next_seq_y(p_menu, p_menu->cur_sel, dy + 1, cicle); next = get_next_seq_y(p_menu, p_menu->cur_sel, dy + 1, cicle);
if (IS_SUBMENU(p_menu->pp_msgs[p_menu->cur_sel])&&(dy!=1)&&(dy!=-1)) p_menu->cur_sel--;
if (p_menu->pp_msgs[p_menu->cur_sel][0] == ' ' || if (p_menu->pp_msgs[p_menu->cur_sel][0] == ' ' ||
p_menu->pp_msgs[p_menu->cur_sel][0] == '#' || p_menu->pp_msgs[p_menu->cur_sel][0] == '#' ||
IS_SUBMENU(p_menu->pp_msgs[p_menu->cur_sel]) ) IS_SUBMENU(p_menu->pp_msgs[p_menu->cur_sel]) )