Prevent calls to menu_driver_navigation_set inside menu drivers -

can just call the accompanied function internally
This commit is contained in:
twinaphex 2021-03-15 06:56:55 +01:00
parent b52577aac1
commit 40ef5f7e65
3 changed files with 5 additions and 5 deletions

View File

@ -6014,7 +6014,7 @@ static int rgui_pointer_up(void *data,
/* Otherwise, just move the current selection to the /* Otherwise, just move the current selection to the
* 'pointer' value */ * 'pointer' value */
menu_navigation_set_selection(ptr); menu_navigation_set_selection(ptr);
menu_driver_navigation_set(false); rgui_navigation_set(rgui, false);
} }
} }
} }

View File

@ -4415,7 +4415,7 @@ static int stripes_pointer_up(void *userdata,
entry, selection, MENU_ACTION_SELECT); entry, selection, MENU_ACTION_SELECT);
menu_navigation_set_selection(ptr); menu_navigation_set_selection(ptr);
menu_driver_navigation_set(false); stripes_navigation_set(stripes, false);
} }
} }
break; break;

View File

@ -7043,7 +7043,7 @@ static int xmb_pointer_up(void *userdata,
/* ...otherwise navigate to the current pointer item */ /* ...otherwise navigate to the current pointer item */
menu_navigation_set_selection(ptr); menu_navigation_set_selection(ptr);
menu_driver_navigation_set(false); xmb_navigation_set(xmb, false);
} }
break; break;
case MENU_INPUT_GESTURE_LONG_PRESS: case MENU_INPUT_GESTURE_LONG_PRESS:
@ -7091,7 +7091,7 @@ static int xmb_pointer_up(void *userdata,
if (last < end) if (last < end)
{ {
menu_navigation_set_selection((size_t)last); menu_navigation_set_selection((size_t)last);
menu_driver_navigation_set(true); xmb_navigation_set(xmb, true);
} }
else else
menu_driver_ctl(MENU_NAVIGATION_CTL_SET_LAST, NULL); menu_driver_ctl(MENU_NAVIGATION_CTL_SET_LAST, NULL);
@ -7141,7 +7141,7 @@ static int xmb_pointer_up(void *userdata,
if (new_idx > 0) if (new_idx > 0)
{ {
menu_navigation_set_selection(new_idx); menu_navigation_set_selection(new_idx);
menu_driver_navigation_set(true); xmb_navigation_set(xmb, true);
} }
else else
{ {