mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 09:10:54 +00:00
in_sdl.c: SDL2: skip over UTF-8 multibyte characters.
Before, we stopped processing at the first byte of a multibyte character, now we skip over the bytes of a multibyte character and continue. This will probably not have a noticeable effect, but it's arguably more correct. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1040 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
cb0c84ac9d
commit
8ad4f6b437
1 changed files with 3 additions and 2 deletions
|
@ -530,8 +530,9 @@ void IN_SendKeyEvents (void)
|
||||||
if (!Key_ConsoleBindable(lastKeyDown))
|
if (!Key_ConsoleBindable(lastKeyDown))
|
||||||
{
|
{
|
||||||
unsigned char *ch;
|
unsigned char *ch;
|
||||||
for (ch = (unsigned char *)event.text.text; ch[0] != 0 && ch[0] < 128; ch++)
|
for (ch = (unsigned char *)event.text.text; ch[0] != 0; ch++)
|
||||||
Char_Event (ch[0]);
|
if ((ch[0] & 0x80) == 0)
|
||||||
|
Char_Event (ch[0]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue