(GLUI) Cleanups

This commit is contained in:
twinaphex 2015-02-11 14:32:09 +01:00
parent bcfd2f7667
commit b64584672f
1 changed files with 4 additions and 5 deletions

View File

@ -498,14 +498,14 @@ static void glui_context_reset(void *data)
static void glui_navigation_clear(void *data, bool pending_push) static void glui_navigation_clear(void *data, bool pending_push)
{ {
if (driver.menu) menu_handle_t *menu = (menu_handle_t*)data;
driver.menu->begin = 0; if (menu)
menu->begin = 0;
} }
static void glui_navigation_set(void *data, bool scroll) static void glui_navigation_set(void *data, bool scroll)
{ {
glui_handle_t *glui = NULL; glui_handle_t *glui = NULL;
menu_handle_t *menu = (menu_handle_t*)data; menu_handle_t *menu = (menu_handle_t*)data;
if (!menu) if (!menu)
@ -515,7 +515,6 @@ static void glui_navigation_set(void *data, bool scroll)
if (!glui) if (!glui)
return; return;
if (!scroll) if (!scroll)
return; return;