diff options
Diffstat (limited to 'apps/plugins/puzzles/src/singles.c')
-rw-r--r-- | apps/plugins/puzzles/src/singles.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/src/singles.c b/apps/plugins/puzzles/src/singles.c index 3dde8c2b87..202ce08b20 100644 --- a/apps/plugins/puzzles/src/singles.c +++ b/apps/plugins/puzzles/src/singles.c | |||
@@ -1758,6 +1758,19 @@ static float game_flash_length(const game_state *oldstate, | |||
1758 | return 0.0F; | 1758 | return 0.0F; |
1759 | } | 1759 | } |
1760 | 1760 | ||
1761 | static void game_get_cursor_location(const game_ui *ui, | ||
1762 | const game_drawstate *ds, | ||
1763 | const game_state *state, | ||
1764 | const game_params *params, | ||
1765 | int *x, int *y, int *w, int *h) | ||
1766 | { | ||
1767 | if(ui->cshow) { | ||
1768 | *x = COORD(ui->cx); | ||
1769 | *y = COORD(ui->cy); | ||
1770 | *w = *h = TILE_SIZE; | ||
1771 | } | ||
1772 | } | ||
1773 | |||
1761 | static int game_status(const game_state *state) | 1774 | static int game_status(const game_state *state) |
1762 | { | 1775 | { |
1763 | return state->completed ? +1 : 0; | 1776 | return state->completed ? +1 : 0; |
@@ -1850,6 +1863,7 @@ const struct game thegame = { | |||
1850 | game_redraw, | 1863 | game_redraw, |
1851 | game_anim_length, | 1864 | game_anim_length, |
1852 | game_flash_length, | 1865 | game_flash_length, |
1866 | game_get_cursor_location, | ||
1853 | game_status, | 1867 | game_status, |
1854 | true, false, game_print_size, game_print, | 1868 | true, false, game_print_size, game_print, |
1855 | false, /* wants_statusbar */ | 1869 | false, /* wants_statusbar */ |