修正一下上下按钮处理的row位置

This commit is contained in:
anod 2022-10-13 23:32:14 +08:00
parent 8f626c535d
commit 20eb7a87eb

View File

@ -194,7 +194,7 @@ static void draw_options( int start_row, int start_idx, int option_cnt, int sele
}
}
#define SELECTED_ROW(top, len, sel) ((top) < (len) ? (len)-(top)+(sel) : (sel)+(len)-(top))
#define SELECTED_ROW(top, len, sel) (((top) < (len)) ? ((len)-(top)+(sel)) : ((sel)+(len)-(top)))
#define REFRESH_PAGE {\
if( idx_top < title_len )\
{\