diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-09-07 13:49:31 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-09-07 13:49:31 +0200 |
commit | f99166ed9de3901010fe6544640203d690b79776 (patch) | |
tree | 1b7a740a1fab0068489d40c67369e23ce68319e3 /crawl-ref/source/showsymb.h | |
parent | f6e9619284a9e56d9a2068c38a553d9a15cf9e1a (diff) | |
download | crawl-ref-f99166ed9de3901010fe6544640203d690b79776.tar.gz crawl-ref-f99166ed9de3901010fe6544640203d690b79776.zip |
Fix glyph truncation on platforms with 16 bit wchar_t.
This can matter only for cygwin, though.
Diffstat (limited to 'crawl-ref/source/showsymb.h')
-rw-r--r-- | crawl-ref/source/showsymb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/showsymb.h b/crawl-ref/source/showsymb.h index 1ff24ef6ec..169bfe1176 100644 --- a/crawl-ref/source/showsymb.h +++ b/crawl-ref/source/showsymb.h @@ -7,10 +7,10 @@ struct map_cell; struct glyph { - wchar_t ch; + ucs_t ch; unsigned short col; // XXX: real or unreal depending on context... - glyph(wchar_t _ch = ' ', unsigned short _col = LIGHTGREY) + glyph(ucs_t _ch = ' ', unsigned short _col = LIGHTGREY) : ch(_ch), col(_col) { } |