diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2023-08-10 00:24:20 +0100 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2023-08-13 16:44:24 +0100 |
| commit | dfca994cf6524c28b027e2331ea91281d835834d (patch) | |
| tree | 4f46125fcf7595238e9cf2c56b939a89047f5f62 | |
| parent | 205508e969cdb6aed54a1b75367e7bb3891c53ba (diff) | |
| download | puzzles-dfca994cf6524c28b027e2331ea91281d835834d.zip puzzles-dfca994cf6524c28b027e2331ea91281d835834d.tar.gz puzzles-dfca994cf6524c28b027e2331ea91281d835834d.tar.bz2 puzzles-dfca994cf6524c28b027e2331ea91281d835834d.tar.xz | |
Mosaic: use new move_cursor() features
| -rw-r--r-- | mosaic.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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; |