(GLUI) Cleanups
This commit is contained in:
parent
bcfd2f7667
commit
b64584672f
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue