From e6d25d75baba5f3bb92ebbbc5dbba10434f4dc4f Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Wed, 9 Aug 2023 15:41:55 +0100 Subject: [PATCH] Dominosa: use new move_cursor() features --- dominosa.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dominosa.c b/dominosa.c index d649e05..3ac723e 100644 --- a/dominosa.c +++ b/dominosa.c @@ -2830,11 +2830,8 @@ static char *interpret_move(const game_state *state, game_ui *ui, sprintf(buf, "%c%d,%d", (int)(button == RIGHT_BUTTON ? 'E' : 'D'), d1, d2); return dupstr(buf); } else if (IS_CURSOR_MOVE(button)) { - ui->cur_visible = true; - - move_cursor(button, &ui->cur_x, &ui->cur_y, 2*w-1, 2*h-1, false, NULL); - - return MOVE_UI_UPDATE; + return move_cursor(button, &ui->cur_x, &ui->cur_y, 2*w-1, 2*h-1, false, + &ui->cur_visible); } else if (IS_CURSOR_SELECT(button)) { int d1, d2;