X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/3c082202687e8cf4611cc40f6c97f329ef7194b0..505ea4e519a86e04130db10195e913068c9b7284:/solo.c diff --git a/solo.c b/solo.c index 8ec0296..6ccf1ad 100644 --- a/solo.c +++ b/solo.c @@ -110,7 +110,7 @@ typedef unsigned char digit; #define PREFERRED_TILE_SIZE 32 #define TILE_SIZE (ds->tilesize) #define BORDER (TILE_SIZE / 2) -#define GRIDEXTRA (TILE_SIZE / 32) +#define GRIDEXTRA max((TILE_SIZE / 32),1) #define FLASH_TIME 0.4F @@ -3162,6 +3162,11 @@ static char *grid_text_format(int cr, struct block_structure *blocks, return ret; } +static int game_can_format_as_text_now(game_params *params) +{ + return TRUE; +} + static char *game_text_format(game_state *state) { return grid_text_format(state->cr, state->blocks, state->xtype, @@ -3935,7 +3940,7 @@ const struct game thegame = { dup_game, free_game, TRUE, solve_game, - TRUE, game_text_format, + TRUE, game_can_format_as_text_now, game_text_format, new_ui, free_ui, encode_ui,