diff options
author | rillig <rillig@NetBSD.org> | 2021-04-29 20:17:20 +0000 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-05-05 14:35:02 -0400 |
commit | 2ebfd4ad7fc8e9710e306dc7bb49ea802b324092 (patch) | |
tree | 5bebd4862de286f4ee3d45e3830234965a5b4c03 /cgram/cgram.c | |
parent | 8d361027390390b7b6ae766c2e907b7438579765 (diff) | |
download | bsdgames-darwin-2ebfd4ad7fc8e9710e306dc7bb49ea802b324092.tar.gz bsdgames-darwin-2ebfd4ad7fc8e9710e306dc7bb49ea802b324092.tar.zst bsdgames-darwin-2ebfd4ad7fc8e9710e306dc7bb49ea802b324092.zip |
cgram: in hinting mode, show all correct characters in bold face
For almost solved cryptograms, this makes the punctuation stand out
less, helping to focus on the missing letters.
Diffstat (limited to 'cgram/cgram.c')
-rw-r--r-- | cgram/cgram.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cgram/cgram.c b/cgram/cgram.c index 54b6429f..2e4d55a2 100644 --- a/cgram/cgram.c +++ b/cgram/cgram.c @@ -1,4 +1,4 @@ -/* $NetBSD: cgram.c,v 1.21 2021/04/25 20:38:03 rillig Exp $ */ +/* $NetBSD: cgram.c,v 1.22 2021/04/29 20:17:20 rillig Exp $ */ /*- * Copyright (c) 2013, 2021 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: cgram.c,v 1.21 2021/04/25 20:38:03 rillig Exp $"); +__RCSID("$NetBSD: cgram.c,v 1.22 2021/04/29 20:17:20 rillig Exp $"); #endif #include <assert.h> @@ -348,8 +348,7 @@ redraw(void) for (int x = 0; x < max_x; x++) { char ch = line[offset_x + x]; bool bold = hinting && - ch == solline[offset_x + x] && - ch_isalpha(ch); + (ch == solline[offset_x + x] || !ch_isalpha(ch)); if (bold) attron(A_BOLD); |