mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-05 01:16:38 +00:00
Move menu->begin to menu->entries.begin
This commit is contained in:
parent
3fe0b3c4d9
commit
9f79d7b21b
@ -47,7 +47,6 @@ typedef struct
|
||||
{
|
||||
void *userdata;
|
||||
|
||||
size_t begin;
|
||||
float scroll_y;
|
||||
|
||||
bool need_refresh;
|
||||
|
@ -36,23 +36,23 @@ menu_entries_t *menu_entries_get_ptr(void)
|
||||
/* Sets the starting index of the menu entry list. */
|
||||
void menu_entries_set_start(size_t i)
|
||||
{
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
menu_entries_t *entries = menu_entries_get_ptr();
|
||||
|
||||
if (!menu)
|
||||
if (!entries)
|
||||
return;
|
||||
|
||||
menu->begin = i;
|
||||
entries->begin = i;
|
||||
}
|
||||
|
||||
/* Returns the starting index of the menu entry list. */
|
||||
size_t menu_entries_get_start(void)
|
||||
{
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
menu_entries_t *entries = menu_entries_get_ptr();
|
||||
|
||||
if (!menu)
|
||||
if (!entries)
|
||||
return 0;
|
||||
|
||||
return menu->begin;
|
||||
return entries->begin;
|
||||
}
|
||||
|
||||
/* Returns the last index (+1) of the menu entry list. */
|
||||
|
@ -29,6 +29,7 @@ extern "C" {
|
||||
|
||||
typedef struct menu_entries
|
||||
{
|
||||
size_t begin;
|
||||
menu_list_t *menu_list;
|
||||
rarch_setting_t *list_settings;
|
||||
menu_navigation_t navigation;
|
||||
|
Loading…
Reference in New Issue
Block a user