Browse Source

More static inspection fixes; wctob() applied to wrong expression in some cases.

tickets/19/19/1
rarified 4 years ago
parent
commit
b54c617117
  1. 4
      Sources/Plasma/PubUtilLib/plGImage/plFont.cpp

4
Sources/Plasma/PubUtilLib/plGImage/plFont.cpp

@ -397,7 +397,7 @@ void plFont::IRenderString( plMipmap *mip, UInt16 x, UInt16 y, const wchar_t *st
plCharacter& ch = fCharacters[(UInt16)L' ' - fFirstChar];
if (fCharacters.Count() <= ((UInt16)string[0] - fFirstChar)) {
if (wctob(string[0]) != EOF)
ch = (fCharacters[(UInt16)wctob(string[0] - fFirstChar)]);
ch = (fCharacters[(UInt16)wctob(string[0]) - fFirstChar]);
} else {
ch = (fCharacters[(UInt16)string[0] - fFirstChar]);
}
@ -603,7 +603,7 @@ void plFont::IRenderString( plMipmap *mip, UInt16 x, UInt16 y, const wchar_t *st
plCharacter& ch = fCharacters[(UInt16)L' ' - fFirstChar];
if (fCharacters.Count() <= ((UInt16)string[0] - fFirstChar)) {
if (wctob(string[0]) != EOF)
ch = (fCharacters[(UInt16)wctob(string[0] - fFirstChar)]);
ch = (fCharacters[(UInt16)wctob(string[0]) - fFirstChar]);
} else {
ch = (fCharacters[(UInt16)string[0] - fFirstChar]);
}

Loading…
Cancel
Save