diff options
author | peter1138 <peter1138@openttd.org> | 2006-11-16 22:05:33 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-11-16 22:05:33 +0000 |
commit | 1a4f1c8177f7ee351cb0096e3456d055b97dc60a (patch) | |
tree | 4fb6c0fac873efffc85cef437baa70d50d51fdfb /console.c | |
parent | 40d647ddde652bb8f1c7b4215279cc82d01ca38f (diff) | |
download | openttd-1a4f1c8177f7ee351cb0096e3456d055b97dc60a.tar.xz |
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
Diffstat (limited to 'console.c')
-rw-r--r-- | console.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -181,9 +181,9 @@ static void IConsoleWndProc(Window *w, WindowEvent *e) } break; default: - if (IsValidAsciiChar(e->we.keypress.ascii, CS_ALPHANUMERAL)) { + if (IsValidChar(e->we.keypress.key, CS_ALPHANUMERAL)) { _iconsole_scroll = ICON_BUFFER; - InsertTextBufferChar(&_iconsole_cmdline, e->we.keypress.ascii); + InsertTextBufferChar(&_iconsole_cmdline, e->we.keypress.key); IConsoleResetHistoryPos(); SetWindowDirty(w); } else { @@ -1057,7 +1057,7 @@ void IConsoleCmdExec(const char *cmdstr) if (cmdstr[0] == '#') return; // comments for (cmdptr = cmdstr; *cmdptr != '\0'; cmdptr++) { - if (!IsValidAsciiChar(*cmdptr, CS_ALPHANUMERAL)) { + if (!IsValidChar(*cmdptr, CS_ALPHANUMERAL)) { IConsoleError("command contains malformed characters, aborting"); IConsolePrintF(_icolour_err, "ERROR: command was: '%s'", cmdstr); return; |