Minor Font.cpp cleanup

This commit is contained in:
Clownacy 2019-03-11 22:19:12 +00:00
parent e864f7e142
commit c45326295a

View file

@ -1628,8 +1628,7 @@ static unsigned short ShiftJISToUnicode(const unsigned char *string, unsigned in
return shiftjis_to_unicode_lookup[string[0]]; return shiftjis_to_unicode_lookup[string[0]];
} }
lookup_index += (string[0] & 0xF) * 0x100; lookup_index += ((string[0] << 8) | string[1]) & 0xFFF;
lookup_index += string[1];
if (bytes_read != NULL) if (bytes_read != NULL)
*bytes_read = 2; *bytes_read = 2;