adjust menu start position: zinx
This commit is contained in:
parent
2c3cc50356
commit
917c38af20
4
ui.c
4
ui.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user