From dfca994cf6524c28b027e2331ea91281d835834d Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Thu, 10 Aug 2023 00:24:20 +0100 Subject: [PATCH] Mosaic: use new move_cursor() features --- mosaic.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mosaic.c b/mosaic.c index bedb29d..05a339d 100644 --- a/mosaic.c +++ b/mosaic.c @@ -1184,10 +1184,8 @@ static char *interpret_move(const game_state *state, game_ui *ui, } ui->cur_visible = false; } else if (IS_CURSOR_MOVE(button)) { - move_cursor(button, &ui->cur_x, &ui->cur_y, state->width, - state->height, false, NULL); - ui->cur_visible = true; - return MOVE_UI_UPDATE; + return move_cursor(button, &ui->cur_x, &ui->cur_y, state->width, + state->height, false, &ui->cur_visible); } else if (IS_CURSOR_SELECT(button)) { if (!ui->cur_visible) { ui->cur_x = 0;