mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 12:39:54 +00:00
Revert "(MaterialUI) silence some warnings"
This reverts commit db7e38fed5a1b3aca2d5e785af58b77ee55e245b.
This commit is contained in:
parent
db7e38fed5
commit
cd329a259c
@ -7906,26 +7906,30 @@ static int materialui_switch_tabs(
|
||||
/* If target tab is NULL, interpret menu action */
|
||||
if (!target_tab)
|
||||
{
|
||||
unsigned target_tab_index = 0;
|
||||
int target_tab_index = 0;
|
||||
|
||||
switch (action)
|
||||
{
|
||||
case MENU_ACTION_LEFT:
|
||||
target_tab_index = mui->nav_bar.active_menu_tab_index - 1;
|
||||
|
||||
if (target_tab_index < 0)
|
||||
{
|
||||
target_tab_index = mui->nav_bar.num_menu_tabs - 1;
|
||||
mui->nav_bar.menu_navigation_wrapped = true;
|
||||
target_tab_index = (int)mui->nav_bar.active_menu_tab_index - 1;
|
||||
|
||||
if (target_tab_index < 0)
|
||||
{
|
||||
target_tab_index = (int)mui->nav_bar.num_menu_tabs - 1;
|
||||
mui->nav_bar.menu_navigation_wrapped = true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case MENU_ACTION_RIGHT:
|
||||
target_tab_index = mui->nav_bar.active_menu_tab_index + 1;
|
||||
|
||||
if (target_tab_index >= mui->nav_bar.num_menu_tabs)
|
||||
{
|
||||
target_tab_index = 0;
|
||||
mui->nav_bar.menu_navigation_wrapped = true;
|
||||
target_tab_index = (int)mui->nav_bar.active_menu_tab_index + 1;
|
||||
|
||||
if (target_tab_index >= mui->nav_bar.num_menu_tabs)
|
||||
{
|
||||
target_tab_index = 0;
|
||||
mui->nav_bar.menu_navigation_wrapped = true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user