chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f96c12
)
Fix from James H: the shared code between drawing and printing
author
Simon Tatham
<anakin@pobox.com>
Mon, 18 Jan 2010 21:23:27 +0000
(21:23 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Mon, 18 Jan 2010 21:23:27 +0000
(21:23 +0000)
should use state->adjacent rather than ds->adjacent, because the
latter won't be initialised in printing mode.
[originally from svn r8852]
unequal.c
patch
|
blob
|
history
diff --git
a/unequal.c
b/unequal.c
index 7ea0349c9f37812531b0f47bc4ab4b3a3ca5a016..57d8afc2631ff0d6a114a7563158872dade29ec6 100644
(file)
--- a/
unequal.c
+++ b/
unequal.c
@@
-1902,7
+1902,7
@@
static void game_print(drawing *dr, game_state *state, int tilesize)
FONT_VARIABLE, TILE_SIZE/2, ALIGN_VCENTRE | ALIGN_HCENTRE,
ink, str);
- if (
ds
->adjacent)
+ if (
state
->adjacent)
draw_adjs(dr, ds, ox, oy, GRID(state, flags, x, y), ink);
else
draw_gts(dr, ds, ox, oy, GRID(state, flags, x, y), ink);