adjust menu start position: zinx

This commit is contained in:
Koushik Dutta 2010-05-24 16:43:39 -07:00
parent 2c3cc50356
commit 917c38af20

4
ui.c
View File

@ -527,11 +527,11 @@ int ui_menu_select(int sel) {
if (menu_sel < menu_show_start && menu_show_start > 0) {
menu_show_start--;
menu_show_start = menu_sel;
}
if (menu_sel - menu_show_start + menu_top >= text_rows) {
menu_show_start++;
menu_show_start = menu_sel + menu_top - text_rows + 1;
}
sel = menu_sel;