aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-08-12 13:52:09 +0100
committerBen Harris <bjh21@bjh21.me.uk>2023-08-13 16:44:24 +0100
commit4bd8822725794989a400768cb69f600e0a5d9734 (patch)
tree9eaee17601b7418d9738ee0c064494e94469b016
parentf8c2477ccbe2e86af2dba2c8483b7655d06652ec (diff)
downloadpuzzles-4bd8822725794989a400768cb69f600e0a5d9734.zip
puzzles-4bd8822725794989a400768cb69f600e0a5d9734.tar.gz
puzzles-4bd8822725794989a400768cb69f600e0a5d9734.tar.bz2
puzzles-4bd8822725794989a400768cb69f600e0a5d9734.tar.xz
Unequal: use new move_cursor() features for normal movement
The shift+arrow controls for dimming clues don't currently use it because they're a bit fiddly.
-rw-r--r--unequal.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/unequal.c b/unequal.c
index f778df0..c2f7311 100644
--- a/unequal.c
+++ b/unequal.c
@@ -1617,11 +1617,9 @@ static char *interpret_move(const game_state *state, game_ui *ui,
return dupstr(buf);
} else {
- move_cursor(button, &ui->hx, &ui->hy, ds->order, ds->order, false,
- NULL);
- ui->hshow = true;
ui->hcursor = true;
- return MOVE_UI_UPDATE;
+ return move_cursor(button, &ui->hx, &ui->hy, ds->order, ds->order,
+ false, &ui->hshow);
}
}
if (ui->hshow && IS_CURSOR_SELECT(button)) {