mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Mosaic: use new move_cursor() features
This commit is contained in:
6
mosaic.c
6
mosaic.c
@ -1184,10 +1184,8 @@ static char *interpret_move(const game_state *state, game_ui *ui,
|
|||||||
}
|
}
|
||||||
ui->cur_visible = false;
|
ui->cur_visible = false;
|
||||||
} else if (IS_CURSOR_MOVE(button)) {
|
} else if (IS_CURSOR_MOVE(button)) {
|
||||||
move_cursor(button, &ui->cur_x, &ui->cur_y, state->width,
|
return move_cursor(button, &ui->cur_x, &ui->cur_y, state->width,
|
||||||
state->height, false, NULL);
|
state->height, false, &ui->cur_visible);
|
||||||
ui->cur_visible = true;
|
|
||||||
return MOVE_UI_UPDATE;
|
|
||||||
} else if (IS_CURSOR_SELECT(button)) {
|
} else if (IS_CURSOR_SELECT(button)) {
|
||||||
if (!ui->cur_visible) {
|
if (!ui->cur_visible) {
|
||||||
ui->cur_x = 0;
|
ui->cur_x = 0;
|
||||||
|
Reference in New Issue
Block a user