shithub: puzzles

Download patch

ref: e08948a7ea96ae6051850a5359bbb960398afcf4
parent: 5666496fc0f71df2ea093976a724739a4ff9978d
author: Simon Tatham <[email protected]>
date: Thu Dec 21 12:11:56 EST 2006

Small printing fix from Gary Wong. Shows up when printing with
solutions: the rightmost and lowermost lines of the grid never get
solution lines drawn on them.

[originally from svn r7003]

--- a/loopy.c
+++ b/loopy.c
@@ -3791,7 +3791,7 @@
     /*
      * Lines. (At the moment, I'm not bothering with crosses.)
      */
-    FORALL_VL(state, x, y) {
+    FORALL_HL(state, x, y) {
         if (RIGHTOF_DOT(state, x, y) == LINE_YES)
         draw_rect(dr, BORDER + x * TILE_SIZE,
                   BORDER + y * TILE_SIZE - LINEWIDTH/2,
@@ -3798,7 +3798,7 @@
                   TILE_SIZE, (LINEWIDTH/2) * 2 + 1, ink);
     }
 
-    FORALL_HL(state, x, y) {
+    FORALL_VL(state, x, y) {
         if (BELOW_DOT(state, x, y) == LINE_YES)
         draw_rect(dr, BORDER + x * TILE_SIZE - LINEWIDTH/2,
                   BORDER + y * TILE_SIZE,