shithub: puzzles

Download patch

ref: 81c65eeac18b3c5f2c869678b3fe03e2bd46ddc2
parent: c3c186d687b5e48e058cb5b2e832e48530caf8e5
author: Simon Tatham <anakin@pobox.com>
date: Tue Jan 5 13:26:44 EST 2010

Missing piece of code I should have cribbed from Solo: we have to
lay out large numbers of pencil marks differently in a square
containing a clue.

[originally from svn r8807]

--- a/keen.c
+++ b/keen.c
@@ -1859,6 +1859,13 @@
 	    pr = pl + TILESIZE - GRIDEXTRA;
 	    pt = ty + GRIDEXTRA;
 	    pb = pt + TILESIZE - GRIDEXTRA;
+	    if (dsf_canonify(clues->dsf, y*w+x) == y*w+x) {
+		/*
+		 * Make space for the clue text.
+		 */
+		pt += TILESIZE/4;
+		/* minph--; */
+	    }
 
 	    /*
 	     * We arrange our pencil marks in a grid layout, with