aboutsummaryrefslogtreecommitdiff
path: root/filling.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 /filling.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 'filling.c')
-rw-r--r--filling.c2
1 files changed, 1 insertions, 1 deletions
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;