aboutsummaryrefslogtreecommitdiff
path: root/filling.c
diff options
context:
space:
mode:
Diffstat (limited to 'filling.c')
-rw-r--r--filling.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/filling.c b/filling.c
index 61060b4..970301c 100644
--- a/filling.c
+++ b/filling.c
@@ -1652,7 +1652,7 @@ enum {
};
static void game_compute_size(const game_params *params, int tilesize,
- int *x, int *y)
+ const game_ui *ui, int *x, int *y)
{
*x = (params->w + 1) * tilesize;
*y = (params->h + 1) * tilesize;
@@ -2092,19 +2092,21 @@ static int game_status(const game_state *state)
return state->completed ? +1 : 0;
}
-static void game_print_size(const game_params *params, float *x, float *y)
+static void game_print_size(const game_params *params, const game_ui *ui,
+ float *x, float *y)
{
int pw, ph;
/*
* I'll use 6mm squares by default.
*/
- game_compute_size(params, 600, &pw, &ph);
+ game_compute_size(params, 600, ui, &pw, &ph);
*x = pw / 100.0F;
*y = ph / 100.0F;
}
-static void game_print(drawing *dr, const game_state *state, int tilesize)
+static void game_print(drawing *dr, const game_state *state, const game_ui *ui,
+ int tilesize)
{
const int w = state->shared->params.w;
const int h = state->shared->params.h;