Dominosa: use new move_cursor() features

This commit is contained in:
Ben Harris
2023-08-09 15:41:55 +01:00
parent 7e9228f154
commit e6d25d75ba

View File

@ -2830,11 +2830,8 @@ static char *interpret_move(const game_state *state, game_ui *ui,
sprintf(buf, "%c%d,%d", (int)(button == RIGHT_BUTTON ? 'E' : 'D'), d1, d2);
return dupstr(buf);
} else if (IS_CURSOR_MOVE(button)) {
ui->cur_visible = true;
move_cursor(button, &ui->cur_x, &ui->cur_y, 2*w-1, 2*h-1, false, NULL);
return MOVE_UI_UPDATE;
return move_cursor(button, &ui->cur_x, &ui->cur_y, 2*w-1, 2*h-1, false,
&ui->cur_visible);
} else if (IS_CURSOR_SELECT(button)) {
int d1, d2;