mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 15:41:30 -07:00
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]
This commit is contained in:
4
loopy.c
4
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.)
|
* 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)
|
if (RIGHTOF_DOT(state, x, y) == LINE_YES)
|
||||||
draw_rect(dr, BORDER + x * TILE_SIZE,
|
draw_rect(dr, BORDER + x * TILE_SIZE,
|
||||||
BORDER + y * TILE_SIZE - LINEWIDTH/2,
|
BORDER + y * TILE_SIZE - LINEWIDTH/2,
|
||||||
TILE_SIZE, (LINEWIDTH/2) * 2 + 1, ink);
|
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)
|
if (BELOW_DOT(state, x, y) == LINE_YES)
|
||||||
draw_rect(dr, BORDER + x * TILE_SIZE - LINEWIDTH/2,
|
draw_rect(dr, BORDER + x * TILE_SIZE - LINEWIDTH/2,
|
||||||
BORDER + y * TILE_SIZE,
|
BORDER + y * TILE_SIZE,
|
||||||
|
Reference in New Issue
Block a user