mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 15:41:30 -07:00
Dominosa: use new move_cursor() features
This commit is contained in:
@ -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);
|
sprintf(buf, "%c%d,%d", (int)(button == RIGHT_BUTTON ? 'E' : 'D'), d1, d2);
|
||||||
return dupstr(buf);
|
return dupstr(buf);
|
||||||
} else if (IS_CURSOR_MOVE(button)) {
|
} else if (IS_CURSOR_MOVE(button)) {
|
||||||
ui->cur_visible = true;
|
return move_cursor(button, &ui->cur_x, &ui->cur_y, 2*w-1, 2*h-1, false,
|
||||||
|
&ui->cur_visible);
|
||||||
move_cursor(button, &ui->cur_x, &ui->cur_y, 2*w-1, 2*h-1, false, NULL);
|
|
||||||
|
|
||||||
return MOVE_UI_UPDATE;
|
|
||||||
} else if (IS_CURSOR_SELECT(button)) {
|
} else if (IS_CURSOR_SELECT(button)) {
|
||||||
int d1, d2;
|
int d1, d2;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user