aboutsummaryrefslogtreecommitdiff
path: root/unequal.c
diff options
context:
space:
mode:
Diffstat (limited to 'unequal.c')
-rw-r--r--unequal.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/unequal.c b/unequal.c
index f6ce50f..dff5885 100644
--- a/unequal.c
+++ b/unequal.c
@@ -1720,7 +1720,7 @@ badmove:
#define DRAW_SIZE (TILE_SIZE*ds->order + GAP_SIZE*(ds->order-1) + BORDER*2)
static void game_compute_size(const game_params *params, int tilesize,
- int *x, int *y)
+ const game_ui *ui, int *x, int *y)
{
/* Ick: fake up `ds->tilesize' for macro expansion purposes */
struct { int tilesize, order; } ads, *ds = &ads;
@@ -2083,17 +2083,19 @@ 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;
/* 10mm squares by default, roughly the same as Grauniad. */
- game_compute_size(params, 1000, &pw, &ph);
+ game_compute_size(params, 1000, 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)
{
int ink = print_mono_colour(dr, 0);
int x, y, o = state->order, ox, oy, n;