From 20eb7a87eb864c11b9c83f5b916449e66eb27790 Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Thu, 13 Oct 2022 23:32:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E4=B8=8B=E4=B8=8A?= =?UTF-8?q?=E4=B8=8B=E6=8C=89=E9=92=AE=E5=A4=84=E7=90=86=E7=9A=84row?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/atp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/arm11/atp.c b/source/arm11/atp.c index 25a8d6a..b7d00a4 100644 --- a/source/arm11/atp.c +++ b/source/arm11/atp.c @@ -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 )\ {\