mirror of
https://github.com/libretro/RetroArch
synced 2025-02-25 21:41:03 +00:00
(RMenu) Draw menu panel for currently selected Core option
This commit is contained in:
parent
c9fed3c6e9
commit
c1f6b80be9
@ -3058,10 +3058,17 @@ static int ingame_menu_core_options(uint8_t menu_type, uint64_t input)
|
|||||||
for (size_t i = 0; i < opts; i++, font_parms.y += POSITION_Y_INCREMENT)
|
for (size_t i = 0; i < opts; i++, font_parms.y += POSITION_Y_INCREMENT)
|
||||||
{
|
{
|
||||||
char type_str[256];
|
char type_str[256];
|
||||||
|
|
||||||
/* not on same page? */
|
/* not on same page? */
|
||||||
if ((i / NUM_ENTRY_PER_PAGE) != (core_opt_selected / NUM_ENTRY_PER_PAGE))
|
if ((i / NUM_ENTRY_PER_PAGE) != (core_opt_selected / NUM_ENTRY_PER_PAGE))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
#ifdef HAVE_MENU_PANEL
|
||||||
|
//check if this is the currently selected option
|
||||||
|
if (i == core_opt_selected)
|
||||||
|
menu_panel->y = font_parms.y;
|
||||||
|
#endif
|
||||||
|
|
||||||
font_parms.x = POSITION_X;
|
font_parms.x = POSITION_X;
|
||||||
font_parms.color = (core_opt_selected == i) ? YELLOW : WHITE;
|
font_parms.color = (core_opt_selected == i) ? YELLOW : WHITE;
|
||||||
|
|
||||||
@ -3076,7 +3083,6 @@ static int ingame_menu_core_options(uint8_t menu_type, uint64_t input)
|
|||||||
|
|
||||||
if (driver.video_poke->set_osd_msg)
|
if (driver.video_poke->set_osd_msg)
|
||||||
driver.video_poke->set_osd_msg(driver.video_data, type_str, &font_parms);
|
driver.video_poke->set_osd_msg(driver.video_data, type_str, &font_parms);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (input & (1ULL << RMENU_DEVICE_NAV_LEFT))
|
if (input & (1ULL << RMENU_DEVICE_NAV_LEFT))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user