summaryrefslogtreecommitdiffstats
path: root/apps/plugins/puzzles/src/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/puzzles/src/net.c')
-rw-r--r--apps/plugins/puzzles/src/net.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/src/net.c b/apps/plugins/puzzles/src/net.c
index 36f8aca483..d3032b6fe2 100644
--- a/apps/plugins/puzzles/src/net.c
+++ b/apps/plugins/puzzles/src/net.c
@@ -3090,6 +3090,20 @@ static float game_flash_length(const game_state *oldstate,
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->cur_visible) {
+ *x = WINDOW_OFFSET + TILE_SIZE * ui->cur_x;
+ *y = WINDOW_OFFSET + TILE_SIZE * ui->cur_y;
+
+ *w = *h = TILE_SIZE;
+ }
+}
+
static int game_status(const game_state *state)
{
return state->completed ? +1 : 0;
@@ -3271,6 +3285,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,
true, /* wants_statusbar */