summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg-text.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-09-27 01:51:49 +0200
committerAdam Borowski <kilobyte@angband.pl>2010-09-27 01:51:49 +0200
commit634ab294f302c98be55389a97e94cd7205860310 (patch)
tree648716263163c899ab013a3bda3f110d2fb4ac5f /crawl-ref/source/tilereg-text.h
parent931040fac24525a457a62e21331572648a2104be (diff)
downloadcrawl-ref-634ab294f302c98be55389a97e94cd7205860310.tar.gz
crawl-ref-634ab294f302c98be55389a97e94cd7205860310.zip
Let tiles output our UTF-8 encoded strings -- only the ISO-8859-1 subset for now.
Word wrapping is yet to be corrected, just like in other UIs.
Diffstat (limited to 'crawl-ref/source/tilereg-text.h')
-rw-r--r--crawl-ref/source/tilereg-text.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/crawl-ref/source/tilereg-text.h b/crawl-ref/source/tilereg-text.h
index b8410bc5d0..f36ed18b20 100644
--- a/crawl-ref/source/tilereg-text.h
+++ b/crawl-ref/source/tilereg-text.h
@@ -44,17 +44,16 @@ public:
// Object's method
void clear_to_end_of_line(void);
- void putch(unsigned char chr);
- void writeWChar(unsigned char *ch);
+ void putwch(ucs_t chr);
- unsigned char *cbuf; //text backup
- unsigned char *abuf; //textcolor backup
+ ucs_t *cbuf; //text backup
+ uint8_t *abuf; //textcolor backup
int cx_ofs; //cursor x offset
int cy_ofs; //cursor y offset
- void addstr(char *buffer);
- void addstr_aux(char *buffer, int len);
+ void addstr(const char *buffer);
+ void addstr_aux(const ucs_t *buffer, int len);
void adjust_region(int *x1, int *x2, int y);
void scroll();