diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2023-08-09 15:48:14 +0100 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2023-08-09 15:48:14 +0100 |
| commit | e30d11ecd169c2e963fada4cac28123b4f4f9a7e (patch) | |
| tree | 03f3931d945e0a5b4c95fbd1d5369ac1bd9ebbab /lightup.c | |
| parent | e6d25d75baba5f3bb92ebbbc5dbba10434f4dc4f (diff) | |
| download | puzzles-e30d11ecd169c2e963fada4cac28123b4f4f9a7e.zip puzzles-e30d11ecd169c2e963fada4cac28123b4f4f9a7e.tar.gz puzzles-e30d11ecd169c2e963fada4cac28123b4f4f9a7e.tar.bz2 puzzles-e30d11ecd169c2e963fada4cac28123b4f4f9a7e.tar.xz | |
Light Up: use new move_cursor() features
Diffstat (limited to 'lightup.c')
| -rw-r--r-- | lightup.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1975,10 +1975,8 @@ static char *interpret_move(const game_state *state, game_ui *ui, } ui->cur_visible = true; } else if (IS_CURSOR_MOVE(button)) { - move_cursor(button, &ui->cur_x, &ui->cur_y, state->w, state->h, false, - NULL); - ui->cur_visible = true; - nullret = empty; + nullret = move_cursor(button, &ui->cur_x, &ui->cur_y, + state->w, state->h, false, &ui->cur_visible); } else return NULL; |