diff options
Diffstat (limited to 'apps/plugins/puzzles/src/fifteen.c')
-rw-r--r-- | apps/plugins/puzzles/src/fifteen.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/src/fifteen.c b/apps/plugins/puzzles/src/fifteen.c index ba991e711a..4b877dc098 100644 --- a/apps/plugins/puzzles/src/fifteen.c +++ b/apps/plugins/puzzles/src/fifteen.c | |||
@@ -1061,6 +1061,17 @@ static float game_flash_length(const game_state *oldstate, | |||
1061 | return 0.0F; | 1061 | return 0.0F; |
1062 | } | 1062 | } |
1063 | 1063 | ||
1064 | static void game_get_cursor_location(const game_ui *ui, | ||
1065 | const game_drawstate *ds, | ||
1066 | const game_state *state, | ||
1067 | const game_params *params, | ||
1068 | int *x, int *y, int *w, int *h) | ||
1069 | { | ||
1070 | *x = COORD(X(state, state->gap_pos)); | ||
1071 | *y = COORD(Y(state, state->gap_pos)); | ||
1072 | *w = *h = TILE_SIZE; | ||
1073 | } | ||
1074 | |||
1064 | static int game_status(const game_state *state) | 1075 | static int game_status(const game_state *state) |
1065 | { | 1076 | { |
1066 | return state->completed ? +1 : 0; | 1077 | return state->completed ? +1 : 0; |
@@ -1115,6 +1126,7 @@ const struct game thegame = { | |||
1115 | game_redraw, | 1126 | game_redraw, |
1116 | game_anim_length, | 1127 | game_anim_length, |
1117 | game_flash_length, | 1128 | game_flash_length, |
1129 | game_get_cursor_location, | ||
1118 | game_status, | 1130 | game_status, |
1119 | false, false, game_print_size, game_print, | 1131 | false, false, game_print_size, game_print, |
1120 | true, /* wants_statusbar */ | 1132 | true, /* wants_statusbar */ |