diff options
Diffstat (limited to 'apps/plugins/puzzles/src/filling.c')
-rw-r--r-- | apps/plugins/puzzles/src/filling.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/src/filling.c b/apps/plugins/puzzles/src/filling.c index f67d9fadba..6d9beb5c28 100644 --- a/apps/plugins/puzzles/src/filling.c +++ b/apps/plugins/puzzles/src/filling.c | |||
@@ -2060,6 +2060,20 @@ static float game_flash_length(const game_state *oldstate, | |||
2060 | return 0.0F; | 2060 | return 0.0F; |
2061 | } | 2061 | } |
2062 | 2062 | ||
2063 | static void game_get_cursor_location(const game_ui *ui, | ||
2064 | const game_drawstate *ds, | ||
2065 | const game_state *state, | ||
2066 | const game_params *params, | ||
2067 | int *x, int *y, int *w, int *h) | ||
2068 | { | ||
2069 | if(ui->cur_visible) | ||
2070 | { | ||
2071 | *x = BORDER + ui->cur_x * TILE_SIZE; | ||
2072 | *y = BORDER + ui->cur_y * TILE_SIZE; | ||
2073 | *w = *h = TILE_SIZE; | ||
2074 | } | ||
2075 | } | ||
2076 | |||
2063 | static int game_status(const game_state *state) | 2077 | static int game_status(const game_state *state) |
2064 | { | 2078 | { |
2065 | return state->completed ? +1 : 0; | 2079 | return state->completed ? +1 : 0; |
@@ -2165,6 +2179,7 @@ const struct game thegame = { | |||
2165 | game_redraw, | 2179 | game_redraw, |
2166 | game_anim_length, | 2180 | game_anim_length, |
2167 | game_flash_length, | 2181 | game_flash_length, |
2182 | game_get_cursor_location, | ||
2168 | game_status, | 2183 | game_status, |
2169 | true, false, game_print_size, game_print, | 2184 | true, false, game_print_size, game_print, |
2170 | false, /* wants_statusbar */ | 2185 | false, /* wants_statusbar */ |