summaryrefslogtreecommitdiff
path: root/src/sdl
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2014-12-18 23:18:47 -0600
committerTim Angus <tim@ngus.net>2015-03-17 11:39:02 +0000
commit83fe70010d11f8e358f5e888f2df14d49d2ec22a (patch)
tree5012e746749143a886788f7f5559277af12759a7 /src/sdl
parent0724b1106f491e25af2a4a70e063021740938229 (diff)
Fix reading 4 byte UTF-8 text input
Diffstat (limited to 'src/sdl')
-rw-r--r--src/sdl/sdl_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sdl/sdl_input.c b/src/sdl/sdl_input.c
index 88ac0451..bd59cc51 100644
--- a/src/sdl/sdl_input.c
+++ b/src/sdl/sdl_input.c
@@ -825,7 +825,7 @@ static void IN_ProcessEvents( void )
else if( ( *c & 0xF8 ) == 0xF0 ) // 1111 0xxx
{
utf32 |= ( *c++ & 0x07 ) << 18;
- utf32 |= ( *c++ & 0x3F ) << 6;
+ utf32 |= ( *c++ & 0x3F ) << 12;
utf32 |= ( *c++ & 0x3F ) << 6;
utf32 |= ( *c++ & 0x3F );
}