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] --- galaxies.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'galaxies.c') diff --git a/galaxies.c b/galaxies.c index 6989fe3..bfb558d 100644 --- a/galaxies.c +++ b/galaxies.c @@ -2075,7 +2075,7 @@ static void game_changed_state(game_ui *ui, game_state *oldstate, #define PREFERRED_TILE_SIZE 32 #define TILE_SIZE (ds->tilesize) #define DOT_SIZE (TILE_SIZE / 4) -#define EDGE_THICKNESS (TILE_SIZE / 16) +#define EDGE_THICKNESS (max(TILE_SIZE / 16, 2)) #define BORDER TILE_SIZE #define COORD(x) ( (x) * TILE_SIZE + BORDER ) -- cgit v1.1