(GLUI) Cleanup

This commit is contained in:
twinaphex 2015-09-06 02:10:44 +02:00
parent d6e3040e5d
commit 17797ee156
1 changed files with 1 additions and 3 deletions

View File

@ -702,13 +702,11 @@ static void glui_navigation_set(bool scroll)
{ {
menu_display_t *disp = menu_display_get_ptr(); menu_display_t *disp = menu_display_get_ptr();
menu_handle_t *menu = menu_driver_get_ptr(); menu_handle_t *menu = menu_driver_get_ptr();
float scroll_pos = 0; float scroll_pos = glui_get_scroll();
if (!menu || !disp || !scroll) if (!menu || !disp || !scroll)
return; return;
scroll_pos = glui_get_scroll();
menu_animation_push(disp->animation, 10, scroll_pos, menu_animation_push(disp->animation, 10, scroll_pos,
&menu->scroll_y, EASING_IN_OUT_QUAD, -1, NULL); &menu->scroll_y, EASING_IN_OUT_QUAD, -1, NULL);
} }