aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-08-11 00:44:49 +0100
committerBen Harris <bjh21@bjh21.me.uk>2023-08-13 16:44:24 +0100
commita0c7156fc8547fd0d6591413dea01462d003b847 (patch)
treeeeacd8d1bfc84cc1067b0be1e96e9dfa5275e4d4
parent2aa5708bc725cb48a0d6629dc97bad2fd8cad414 (diff)
downloadpuzzles-a0c7156fc8547fd0d6591413dea01462d003b847.zip
puzzles-a0c7156fc8547fd0d6591413dea01462d003b847.tar.gz
puzzles-a0c7156fc8547fd0d6591413dea01462d003b847.tar.bz2
puzzles-a0c7156fc8547fd0d6591413dea01462d003b847.tar.xz
Signpost: use new move_cursor() features
-rw-r--r--signpost.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/signpost.c b/signpost.c
index 38c4795..9aed67b 100644
--- a/signpost.c
+++ b/signpost.c
@@ -1511,13 +1511,14 @@ static char *interpret_move(const game_state *state, game_ui *ui,
char buf[80];
if (IS_CURSOR_MOVE(button)) {
- move_cursor(button, &ui->cx, &ui->cy, state->w, state->h, false, NULL);
- ui->cshow = true;
+ char *ret;
+ ret = move_cursor(button, &ui->cx, &ui->cy, state->w, state->h, false,
+ &ui->cshow);
if (ui->dragging) {
ui->dx = COORD(ui->cx) + TILE_SIZE/2;
ui->dy = COORD(ui->cy) + TILE_SIZE/2;
}
- return MOVE_UI_UPDATE;
+ return ret;
} else if (IS_CURSOR_SELECT(button)) {
if (!ui->cshow)
ui->cshow = true;