summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/viewchar.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-04-02 20:42:41 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-04-02 20:42:41 +0200
commitd769e99db47269a8d3a261a14461f5f8cf3c0704 (patch)
tree9aefed117d166305ce9b2d75c9e4916c7f6d0d6b /crawl-ref/source/viewchar.cc
parente1eefe16187059ba96c59033b4d9aee1ea2c20e9 (diff)
downloadcrawl-ref-d769e99db47269a8d3a261a14461f5f8cf3c0704.tar.gz
crawl-ref-d769e99db47269a8d3a261a14461f5f8cf3c0704.zip
Make default books ':' again, use different glyphs for detected items on Windows.
For books, it's better to match the shortcut keys by default. For detected items, there is a discrepancy between the Microsoft's bitmap fonts and their Windows Glyph List recommendations. We use the one that works in the former and is "optional" in the latter.
Diffstat (limited to 'crawl-ref/source/viewchar.cc')
-rw-r--r--crawl-ref/source/viewchar.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/crawl-ref/source/viewchar.cc b/crawl-ref/source/viewchar.cc
index 455d41f726..e880e254a1 100644
--- a/crawl-ref/source/viewchar.cc
+++ b/crawl-ref/source/viewchar.cc
@@ -14,9 +14,14 @@ static const unsigned dchar_table[ NUM_CSET ][ NUM_DCHAR_TYPES ] =
// It must be limited to stuff present both in CP437 and WGL4.
{
'#', '*', '.', ',', '\'', '+', '^', '>', '<',
- '#', '_', 0x2229, 0x2320, 0x2248, '8', '{', 0x2302,
+ '#', '_', 0x2229, 0x2320, 0x2248, '8', '{',
+#if defined(TARGET_OS_WINDOWS) && !defined(USE_TILE)
+ 0x2302, // CP437 but "optional" in WGL4
+#else
+ 0x2206, // WGL4 and DEC
+#endif
'0', ')', '[', '/', '%', '?', '=', '!', '(',
- 0x221E, '|', '}', '%', '$', '"', 0xA7, 0x2663,
+ ':', '|', '}', '%', '$', '"', 0xA7, 0x2663,
' ', '!', '#', '%', '+', ')', '*', '+', // space .. fired_burst
'/', '=', '?', 'X', '[', '`', 0x0398 // fi_stick .. explosion
},