From 859a5ab42d2c9922f5ddc0b73961bb4231e379b7 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 8 Jun 2007 18:48:41 +0000 Subject: When showing glyphs in messages (as in the tutorial), use stringize_glyph() to convert Unicode glyphs to multibyte sequences. Added multibyte_strlen to calculate string lengths correctly when dealing with multibyte strings. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1560 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/message.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/message.h') diff --git a/crawl-ref/source/message.h b/crawl-ref/source/message.h index 5be11ce82f..d2cafbeeab 100644 --- a/crawl-ref/source/message.h +++ b/crawl-ref/source/message.h @@ -62,7 +62,7 @@ class formatted_string; void formatted_mpr(const formatted_string& fs, int channel = MSGCH_PLAIN, int param = 0); -void formatted_message_history(const std::string st, +void formatted_message_history(const std::string &st, int channel = MSGCH_PLAIN, int param = 0); // 4.1-style mpr, currently named mprf for minimal disruption. -- cgit v1.2.3-54-g00ecf