Minor Font.cpp cleanup
This commit is contained in:
parent
e864f7e142
commit
c45326295a
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue