aboutsummaryrefslogtreecommitdiff
path: root/galaxies.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2007-03-01 07:32:35 +0000
committerSimon Tatham <anakin@pobox.com>2007-03-01 07:32:35 +0000
commitcf0b0b747b4ce389b07ccd6e29a50074a940ac93 (patch)
treedd43be84ede01c5fe78dd3de659b9ec94dfc87a8 /galaxies.c
parent682ea218de892122615f8aff7338306198fe56f4 (diff)
downloadpuzzles-cf0b0b747b4ce389b07ccd6e29a50074a940ac93.zip
puzzles-cf0b0b747b4ce389b07ccd6e29a50074a940ac93.tar.gz
puzzles-cf0b0b747b4ce389b07ccd6e29a50074a940ac93.tar.bz2
puzzles-cf0b0b747b4ce389b07ccd6e29a50074a940ac93.tar.xz
Bound edge thicknesses below so that they're always thicker than the
grid lines. [originally from svn r7349]
Diffstat (limited to 'galaxies.c')
-rw-r--r--galaxies.c2
1 files changed, 1 insertions, 1 deletions
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 )