aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-08-11 23:51:06 +0100
committerBen Harris <bjh21@bjh21.me.uk>2023-08-13 16:44:24 +0100
commit7e7545cb56cf44aa42582561a2b134ae6cbb633b (patch)
tree6efc8f2b6ff138bdc79d5c2456db70fd442108fe
parentf13fbf2285b1731dcc592f5a657dcbda2bbf3a02 (diff)
downloadpuzzles-7e7545cb56cf44aa42582561a2b134ae6cbb633b.zip
puzzles-7e7545cb56cf44aa42582561a2b134ae6cbb633b.tar.gz
puzzles-7e7545cb56cf44aa42582561a2b134ae6cbb633b.tar.bz2
puzzles-7e7545cb56cf44aa42582561a2b134ae6cbb633b.tar.xz
Slant: use new move_cursor() features
-rw-r--r--slant.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/slant.c b/slant.c
index 6ce0a49..bd04b78 100644
--- a/slant.c
+++ b/slant.c
@@ -1739,9 +1739,7 @@ static char *interpret_move(const game_state *state, game_ui *ui,
action = (button == CURSOR_SELECT2) ? ANTICLOCKWISE : CLOCKWISE;
} else if (IS_CURSOR_MOVE(button)) {
- move_cursor(button, &ui->cur_x, &ui->cur_y, w, h, false, NULL);
- ui->cur_visible = true;
- return MOVE_UI_UPDATE;
+ return move_cursor(button, &ui->cur_x, &ui->cur_y, w, h, false, &ui->cur_visible);
} else if (button == '\\' || button == '\b' || button == '/') {
int x = ui->cur_x, y = ui->cur_y;
if (button == ("\\" "\b" "/")[state->soln[y*w + x] + 1])