Use wide-string character consistently

Comparing '\r' against 8bit character instead of 16bit wide character.
This commit is contained in:
DanielRabl 2022-05-22 14:47:49 +02:00 committed by Lukas Dürrenberger
parent 3e424550d8
commit 97a1bf2f5d

View File

@ -447,7 +447,7 @@ void Text::ensureGeometryUpdate() const
Uint32 curChar = m_string[i]; Uint32 curChar = m_string[i];
// Skip the \r char to avoid weird graphical issues // Skip the \r char to avoid weird graphical issues
if (curChar == '\r') if (curChar == L'\r')
continue; continue;
// Apply the kerning offset // Apply the kerning offset