shithub: puzzles

Download patch

ref: a35c6602849314ee42894e5cdecc09223f0cab07
parent: 808495cb41329afe45f919f238e1a863056f57f0
author: Simon Tatham <anakin@pobox.com>
date: Sun Nov 2 09:29:41 EST 2008

Patch from Chris Boyle to prevent Solo's inter-block dividing lines
from becoming indistinguishable from the intra-block ones at low
tile sizes.

[originally from svn r8259]

--- a/solo.c
+++ b/solo.c
@@ -110,7 +110,7 @@
 #define PREFERRED_TILE_SIZE 32
 #define TILE_SIZE (ds->tilesize)
 #define BORDER (TILE_SIZE / 2)
-#define GRIDEXTRA (TILE_SIZE / 32)
+#define GRIDEXTRA max((TILE_SIZE / 32),1)
 
 #define FLASH_TIME 0.4F