summaryrefslogtreecommitdiff
path: root/src/textbuf_type.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-05-17 23:31:49 +0200
committerMichael Lutz <michi@icosahedron.de>2020-05-21 20:02:34 +0200
commit808c8198d5ab61c457d0351ff7971b75ee17c10a (patch)
tree70459dfbd4c69dd9e82282eed2c6fe68383774f3 /src/textbuf_type.h
parent43cd892e0c2c012355d7eb6d47cfa4ad4b7e68eb (diff)
downloadopenttd-808c8198d5ab61c457d0351ff7971b75ee17c10a.tar.xz
Codechange: Consistently use WChar when passing characters around, and also define it as char32_t.
Diffstat (limited to 'src/textbuf_type.h')
-rw-r--r--src/textbuf_type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textbuf_type.h b/src/textbuf_type.h
index a238aa74b..b4f234f73 100644
--- a/src/textbuf_type.h
+++ b/src/textbuf_type.h
@@ -53,7 +53,7 @@ struct Textbuf {
void DeleteAll();
bool InsertClipboard();
- bool InsertChar(uint32 key);
+ bool InsertChar(WChar key);
bool InsertString(const char *str, bool marked, const char *caret = nullptr, const char *insert_location = nullptr, const char *replacement_end = nullptr);
bool DeleteChar(uint16 keycode);