From 029cc3996845899edf1cfae55fbf3bd55cbc7439 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Thu, 10 Aug 2023 00:08:13 +0100 Subject: [PATCH] Mines: use new move_cursor() features --- mines.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/mines.c b/mines.c index 91fe6e2..d823341 100644 --- a/mines.c +++ b/mines.c @@ -2422,12 +2422,9 @@ static char *interpret_move(const game_state *from, game_ui *ui, cx = FROMCOORD(x); cy = FROMCOORD(y); - if (IS_CURSOR_MOVE(button)) { - move_cursor(button, &ui->cur_x, &ui->cur_y, from->w, from->h, false, - NULL); - ui->cur_visible = true; - return MOVE_UI_UPDATE; - } + if (IS_CURSOR_MOVE(button)) + return move_cursor(button, &ui->cur_x, &ui->cur_y, from->w, from->h, + false, &ui->cur_visible); if (IS_CURSOR_SELECT(button)) { int v = from->grid[ui->cur_y * from->w + ui->cur_x];