aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2006-12-21 17:11:56 +0000
committerSimon Tatham <anakin@pobox.com>2006-12-21 17:11:56 +0000
commite08948a7ea96ae6051850a5359bbb960398afcf4 (patch)
treecf44c3bba63a91133c178647edfb28e4dd508899
parent5666496fc0f71df2ea093976a724739a4ff9978d (diff)
downloadpuzzles-e08948a7ea96ae6051850a5359bbb960398afcf4.zip
puzzles-e08948a7ea96ae6051850a5359bbb960398afcf4.tar.gz
puzzles-e08948a7ea96ae6051850a5359bbb960398afcf4.tar.bz2
puzzles-e08948a7ea96ae6051850a5359bbb960398afcf4.tar.xz
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]
-rw-r--r--loopy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loopy.c b/loopy.c
index 798e54e..20d1e96 100644
--- a/loopy.c
+++ b/loopy.c
@@ -3791,14 +3791,14 @@ static void game_print(drawing *dr, game_state *state, int tilesize)
/*
* 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);
}
- 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,