- made the console Unicode-capable.
This also necessitated some character remapping in the console font to move the Windows-1252 extra characters to their proper Unicode code points.
This commit is contained in:
parent
8018ebfab5
commit
64685705d0
10 changed files with 454 additions and 368 deletions
|
|
@ -46,6 +46,7 @@
|
|||
#include "events.h"
|
||||
#include "g_game.h"
|
||||
#include "g_levellocals.h"
|
||||
#include "utf8.h"
|
||||
|
||||
|
||||
static void I_CheckGUICapture ();
|
||||
|
|
@ -471,10 +472,9 @@ void MessagePump (const SDL_Event &sev)
|
|||
case SDL_TEXTINPUT:
|
||||
if (GUICapture)
|
||||
{
|
||||
int utf8_decode(const char *src, int *size);
|
||||
int size;
|
||||
|
||||
int unichar = utf8_decode(sev.text.text, &size);
|
||||
int unichar = utf8_decode((const uint8_t*)sev.text.text, &size);
|
||||
if (size != 4)
|
||||
{
|
||||
event.type = EV_GUI_Event;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue