(RMenu) Some RMenu fixes - deal with overflow on 'pressed up'

state in core options menu along with some other things
This commit is contained in:
twinaphex 2013-04-09 09:58:26 +02:00
parent 6a845dec64
commit b91527749e
1 changed files with 16 additions and 16 deletions

View File

@ -3027,14 +3027,11 @@ static int ingame_menu_core_options(uint8_t menu_type, uint64_t input)
if (input & (1ULL << RMENU_DEVICE_NAV_START))
core_option_set_default(g_extern.system.core_options, core_opt_selected);
}
else if (driver.video_poke->set_osd_msg)
driver.video_poke->set_osd_msg(driver.video_data, "No options available.", &font_parms);
if (input & (1ULL << RMENU_DEVICE_NAV_UP))
{
if (core_opt_selected == 0)
core_opt_selected = core_option_size(g_extern.system.core_options);
core_opt_selected = core_option_size(g_extern.system.core_options) - 1;
else
core_opt_selected--;
}
@ -3046,6 +3043,9 @@ static int ingame_menu_core_options(uint8_t menu_type, uint64_t input)
if (core_opt_selected >= core_option_size(g_extern.system.core_options))
core_opt_selected = 0;
}
}
else if (driver.video_poke->set_osd_msg)
driver.video_poke->set_osd_msg(driver.video_data, "No options available.", &font_parms);
return 0;
}