diff options
Diffstat (limited to 'apps/plugins/puzzles/src/blackbox.c')
-rw-r--r-- | apps/plugins/puzzles/src/blackbox.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/src/blackbox.c b/apps/plugins/puzzles/src/blackbox.c index c52c50812d..a9c1f88261 100644 --- a/apps/plugins/puzzles/src/blackbox.c +++ b/apps/plugins/puzzles/src/blackbox.c @@ -1100,6 +1100,20 @@ badmove: return NULL; } + +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 = TODRAW(ui->cur_x); + *y = TODRAW(ui->cur_y); + *w = *h = TILE_SIZE; + } +} + /* ---------------------------------------------------------------------- * Drawing routines. */ @@ -1544,6 +1558,7 @@ const struct game thegame = { game_redraw, game_anim_length, game_flash_length, + game_get_cursor_location, game_status, false, false, game_print_size, game_print, true, /* wants_statusbar */ |