aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-08-10 00:24:20 +0100
committerBen Harris <bjh21@bjh21.me.uk>2023-08-13 16:44:24 +0100
commitdfca994cf6524c28b027e2331ea91281d835834d (patch)
tree4f46125fcf7595238e9cf2c56b939a89047f5f62
parent205508e969cdb6aed54a1b75367e7bb3891c53ba (diff)
downloadpuzzles-dfca994cf6524c28b027e2331ea91281d835834d.zip
puzzles-dfca994cf6524c28b027e2331ea91281d835834d.tar.gz
puzzles-dfca994cf6524c28b027e2331ea91281d835834d.tar.bz2
puzzles-dfca994cf6524c28b027e2331ea91281d835834d.tar.xz
Mosaic: use new move_cursor() features
-rw-r--r--mosaic.c6
1 files 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;