Fix reading 4 byte UTF-8 text input

This commit is contained in:
Zack Middleton committed 2014-12-19 21:56:54 -06:00
1 parent 65121c62c9
commit a700b76722
1 file changed
+1 -1
+1 -1
View File
@@ -776,7 +776,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 );
}