Move menu->begin to menu->entries.begin

This commit is contained in:
twinaphex 2015-06-16 02:17:52 +02:00
parent 3fe0b3c4d9
commit 9f79d7b21b
3 changed files with 7 additions and 7 deletions

View File

@ -47,7 +47,6 @@ typedef struct
{
void *userdata;
size_t begin;
float scroll_y;
bool need_refresh;

View File

@ -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. */

View File

@ -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;