solutions: the rightmost and lowermost lines of the grid never get
solution lines drawn on them.
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@7003
cda61777-01e9-0310-a592-
d414129be87e
/*
* Lines. (At the moment, I'm not bothering with crosses.)
*/
/*
* 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,
TILE_SIZE, (LINEWIDTH/2) * 2 + 1, ink);
}
if (RIGHTOF_DOT(state, x, y) == LINE_YES)
draw_rect(dr, BORDER + x * TILE_SIZE,
BORDER + y * TILE_SIZE - LINEWIDTH/2,
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,
if (BELOW_DOT(state, x, y) == LINE_YES)
draw_rect(dr, BORDER + x * TILE_SIZE - LINEWIDTH/2,
BORDER + y * TILE_SIZE,