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:
8d4b62c
)
Someone points out that the Solo text formatter would be a lot
author
Simon Tatham
<anakin@pobox.com>
Fri, 2 Sep 2005 13:40:16 +0000
(13:40 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Fri, 2 Sep 2005 13:40:16 +0000
(13:40 +0000)
better if it marked empty cells with something other than a space.
So here's a three-bit change to turn it into a dot :-)
[originally from svn r6261]
solo.c
patch
|
blob
|
history
diff --git
a/solo.c
b/solo.c
index 5b92bca4f9107ef032c8373386d8bf79323f5604..efd795b8f4782ee7d7b487ba6ddc92fec025dc54 100644
(file)
--- a/
solo.c
+++ b/
solo.c
@@
-2442,7
+2442,7
@@
static char *grid_text_format(int c, int r, digit *grid)
for (x = 0; x < cr; x++) {
int ch = grid[y * cr + x];
if (ch == 0)
- ch = '
';
+ ch = '
.
';
else if (ch <= 9)
ch = '0' + ch;
else