From cf0b0b747b4ce389b07ccd6e29a50074a940ac93 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 1 Mar 2007 07:32:35 +0000 Subject: Bound edge thicknesses below so that they're always thicker than the grid lines. [originally from svn r7349] --- filling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'filling.c') diff --git a/filling.c b/filling.c index f47f9f1..b05ab49 100644 --- a/filling.c +++ b/filling.c @@ -907,7 +907,7 @@ static void game_changed_state(game_ui *ui, game_state *oldstate, #define PREFERRED_TILE_SIZE 32 #define TILE_SIZE (ds->tilesize) #define BORDER (TILE_SIZE / 2) -#define BORDER_WIDTH (TILE_SIZE / 32) +#define BORDER_WIDTH (max(TILE_SIZE / 32, 1)) struct game_drawstate { struct game_params params; -- cgit v1.1