From e30d11ecd169c2e963fada4cac28123b4f4f9a7e Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Wed, 9 Aug 2023 15:48:14 +0100 Subject: [PATCH] Light Up: use new move_cursor() features --- lightup.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lightup.c b/lightup.c index 64c41f7..31a3820 100644 --- a/lightup.c +++ b/lightup.c @@ -1975,10 +1975,8 @@ static char *interpret_move(const game_state *state, game_ui *ui, } ui->cur_visible = true; } else if (IS_CURSOR_MOVE(button)) { - move_cursor(button, &ui->cur_x, &ui->cur_y, state->w, state->h, false, - NULL); - ui->cur_visible = true; - nullret = empty; + nullret = move_cursor(button, &ui->cur_x, &ui->cur_y, + state->w, state->h, false, &ui->cur_visible); } else return NULL;