Fix reading 4 byte UTF-8 text input

This commit is contained in:
Zack Middleton 2014-12-18 23:18:47 -06:00
parent 65121c62c9
commit a700b76722

View file

@ -776,7 +776,7 @@ static void IN_ProcessEvents( void )
else if( ( *c & 0xF8 ) == 0xF0 ) // 1111 0xxx else if( ( *c & 0xF8 ) == 0xF0 ) // 1111 0xxx
{ {
utf32 |= ( *c++ & 0x07 ) << 18; utf32 |= ( *c++ & 0x07 ) << 18;
utf32 |= ( *c++ & 0x3F ) << 6; utf32 |= ( *c++ & 0x3F ) << 12;
utf32 |= ( *c++ & 0x3F ) << 6; utf32 |= ( *c++ & 0x3F ) << 6;
utf32 |= ( *c++ & 0x3F ); utf32 |= ( *c++ & 0x3F );
} }