diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-11-21 10:26:09 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-11-21 10:26:09 (GMT) |
commit | 30f0774da2cecd4a02f773758fcf81c45cf3fdab (patch) | |
tree | 82755813733ceeb3d35582f7b4b346efe3fc2196 /win/tkWinX.c | |
parent | ae5544272b6b41becb2c807fc5022a288ba42274 (diff) | |
download | tk-30f0774da2cecd4a02f773758fcf81c45cf3fdab.zip tk-30f0774da2cecd4a02f773758fcf81c45cf3fdab.tar.gz tk-30f0774da2cecd4a02f773758fcf81c45cf3fdab.tar.bz2 |
Now that TkUniCharToUtf() produces maximum of 4 bytes, reduce storage. More code simplifications.
Disallow Emoji on X11 without xft, just use replacement character then.
Diffstat (limited to 'win/tkWinX.c')
-rw-r--r-- | win/tkWinX.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/win/tkWinX.c b/win/tkWinX.c index c01096e..d2af130 100644 --- a/win/tkWinX.c +++ b/win/tkWinX.c @@ -1478,8 +1478,7 @@ GetTranslatedKey( if ((msg.message == WM_CHAR) && (msg.lParam & 0x20000000)) { xkey->state = 0; } - xkey->trans_chars[xkey->nbytes] = (char) msg.wParam; - xkey->nbytes++; + xkey->trans_chars[xkey->nbytes++] = (char) msg.wParam; if (((unsigned short) msg.wParam) > ((unsigned short) 0xff)) { /* |