summaryrefslogtreecommitdiffstats
path: root/apps/plugins/puzzles/src/bridges.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/puzzles/src/bridges.c')
-rw-r--r--apps/plugins/puzzles/src/bridges.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/src/bridges.c b/apps/plugins/puzzles/src/bridges.c
index d12aa0bb6c..83086c9761 100644
--- a/apps/plugins/puzzles/src/bridges.c
+++ b/apps/plugins/puzzles/src/bridges.c
@@ -2146,6 +2146,20 @@ struct game_drawstate {
bool started, dragging;
};
+
+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->cur_visible) {
+ *x = COORD(ui->cur_x);
+ *y = COORD(ui->cur_y);
+ *w = *h = TILE_SIZE;
+ }
+}
+
/*
* The contents of ds->grid are complicated, because of the circular
* islands which overlap their own grid square into neighbouring
@@ -3267,6 +3281,7 @@ const struct game 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 */