Skip to content

Conversation

@TheGreatSilurus
Copy link

Issue

With 1C Russian localization, texts with letter 'ю'(0xFE) are displayed incorrectly or not displayed at all.
bug
This issue has already been reported #157

Solution

Argument of function FMtext_char_width(char c) is (signed) char, so line:
width = gCurrentFont->glyphs[c].width;
may lead to accessing the wrong memory cell.
Casting the 'c' variable to a unsigned char type(, like in FMtext_width,) solves this problem.

fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant