- if(first_visible + (MENU_ENTRIES_VISIBLE - 2 + (selected + 1 == n)) < selected) {
- first_visible = selected - (MENU_ENTRIES_VISIBLE - 2 + (selected + 1 == n));
+ if(*first_visible + (MENU_ENTRIES_VISIBLE - 2 + (selected + 1 == n)) < selected) {
+ *first_visible = selected - (MENU_ENTRIES_VISIBLE - 2 + (selected + 1 == n));