fix jump menu scrolling bug

leave everything to handle_scrolling
This commit is contained in:
LiquidFenrir
2018-01-01 23:37:14 +01:00
parent d2e65d1edc
commit fbbb4f590d

View File

@@ -184,9 +184,6 @@ static void jump_menu(Entry_List_s * list)
if(button == SWKBD_BUTTON_CONFIRM)
{
list->selected_entry = atoi(numbuf) - 1;
list->scroll = list->selected_entry;
if(list->scroll >= list->entries_count - ENTRIES_PER_SCREEN)
list->scroll = list->entries_count - ENTRIES_PER_SCREEN - 1;
}
}