mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Signpost: use new move_cursor() features
This commit is contained in:
@ -1511,13 +1511,14 @@ static char *interpret_move(const game_state *state, game_ui *ui,
|
|||||||
char buf[80];
|
char buf[80];
|
||||||
|
|
||||||
if (IS_CURSOR_MOVE(button)) {
|
if (IS_CURSOR_MOVE(button)) {
|
||||||
move_cursor(button, &ui->cx, &ui->cy, state->w, state->h, false, NULL);
|
char *ret;
|
||||||
ui->cshow = true;
|
ret = move_cursor(button, &ui->cx, &ui->cy, state->w, state->h, false,
|
||||||
|
&ui->cshow);
|
||||||
if (ui->dragging) {
|
if (ui->dragging) {
|
||||||
ui->dx = COORD(ui->cx) + TILE_SIZE/2;
|
ui->dx = COORD(ui->cx) + TILE_SIZE/2;
|
||||||
ui->dy = COORD(ui->cy) + TILE_SIZE/2;
|
ui->dy = COORD(ui->cy) + TILE_SIZE/2;
|
||||||
}
|
}
|
||||||
return MOVE_UI_UPDATE;
|
return ret;
|
||||||
} else if (IS_CURSOR_SELECT(button)) {
|
} else if (IS_CURSOR_SELECT(button)) {
|
||||||
if (!ui->cshow)
|
if (!ui->cshow)
|
||||||
ui->cshow = true;
|
ui->cshow = true;
|
||||||
|
Reference in New Issue
Block a user