This commit is contained in:
TT 2019-11-09 11:20:22 +09:00
parent e6035a5d96
commit c91d1e638a

14
ui.c
View file

@ -1673,6 +1673,7 @@ ui_process_normal(void)
if (status & EVT_BUTTON_SINGLE_CLICK) {
ui_mode_menu();
} else {
#if 0
do {
if (active_marker >= 0 && markers[active_marker].enabled) {
if ((status & EVT_DOWN) && markers[active_marker].index > 0) {
@ -1688,6 +1689,19 @@ ui_process_normal(void)
}
status = btn_wait_release();
} while (status != 0);
#else
if (active_marker >= 0) {
if (status & EVT_DOWN) {
int i = marker_search_left(markers[active_marker].index);
if (i != -1)
markers[active_marker].index = i;
} else if (status & EVT_UP) {
int i = marker_search_right(markers[active_marker].index);
if (i != -1)
markers[active_marker].index = i;
}
}
#endif
if (active_marker >= 0)
redraw_marker(active_marker, TRUE);
}