aboutsummaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
Diffstat (limited to 'range.c')
-rw-r--r--range.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/range.c b/range.c
index 64bd17d..fc0a540 100644
--- a/range.c
+++ b/range.c
@@ -1572,6 +1572,19 @@ static float game_flash_length(const game_state *from,
return 0.0F;
}
+static void game_get_cursor_location(const game_ui *ui,
+ const game_drawstate *ds,
+ const game_state *state,
+ const game_params *params,
+ int *x, int *y, int *w, int *h)
+{
+ if(ui->cursor_show) {
+ *x = BORDER + TILESIZE * ui->c;
+ *y = BORDER + TILESIZE * ui->r;
+ *w = *h = TILESIZE;
+ }
+}
+
static int game_status(const game_state *state)
{
return state->was_solved ? +1 : 0;
@@ -1823,6 +1836,7 @@ struct game const thegame = {
game_redraw,
game_anim_length,
game_flash_length,
+ game_get_cursor_location,
game_status,
true, false, game_print_size, game_print,
false, /* wants_statusbar */