Mosaic: use new move_cursor() features

This commit is contained in:
Ben Harris
2023-08-10 00:24:20 +01:00
parent 205508e969
commit dfca994cf6

View File

@ -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;