ref: cf0b0b747b4ce389b07ccd6e29a50074a940ac93
parent: 682ea218de892122615f8aff7338306198fe56f4
author: Simon Tatham <[email protected]>
date: Thu Mar 1 02:32:35 EST 2007
Bound edge thicknesses below so that they're always thicker than the grid lines. [originally from svn r7349]
--- a/filling.c
+++ b/filling.c
@@ -907,7 +907,7 @@
#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;
--- a/galaxies.c
+++ b/galaxies.c
@@ -2075,7 +2075,7 @@
#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 )