diff options
Diffstat (limited to 'apps/plugins/puzzles/src/magnets.c')
-rw-r--r-- | apps/plugins/puzzles/src/magnets.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/src/magnets.c b/apps/plugins/puzzles/src/magnets.c index 1a5f37f1fd..edbb8490ad 100644 --- a/apps/plugins/puzzles/src/magnets.c +++ b/apps/plugins/puzzles/src/magnets.c | |||
@@ -2291,6 +2291,19 @@ static float game_flash_length(const game_state *oldstate, | |||
2291 | return 0.0F; | 2291 | return 0.0F; |
2292 | } | 2292 | } |
2293 | 2293 | ||
2294 | static void game_get_cursor_location(const game_ui *ui, | ||
2295 | const game_drawstate *ds, | ||
2296 | const game_state *state, | ||
2297 | const game_params *params, | ||
2298 | int *x, int *y, int *w, int *h) | ||
2299 | { | ||
2300 | if(ui->cur_visible) { | ||
2301 | *x = COORD(ui->cur_x); | ||
2302 | *y = COORD(ui->cur_y); | ||
2303 | *w = *h = TILE_SIZE; | ||
2304 | } | ||
2305 | } | ||
2306 | |||
2294 | static int game_status(const game_state *state) | 2307 | static int game_status(const game_state *state) |
2295 | { | 2308 | { |
2296 | return state->completed ? +1 : 0; | 2309 | return state->completed ? +1 : 0; |
@@ -2432,6 +2445,7 @@ const struct game thegame = { | |||
2432 | game_redraw, | 2445 | game_redraw, |
2433 | game_anim_length, | 2446 | game_anim_length, |
2434 | game_flash_length, | 2447 | game_flash_length, |
2448 | game_get_cursor_location, | ||
2435 | game_status, | 2449 | game_status, |
2436 | true, false, game_print_size, game_print, | 2450 | true, false, game_print_size, game_print, |
2437 | false, /* wants_statusbar */ | 2451 | false, /* wants_statusbar */ |