Scene change support
This commit is contained in:
@ -211,7 +211,9 @@ void UILabel::rebufferQuads(const std::vector<struct UILabelText> newTexts) {
|
||||
|
||||
// Now, iterate each character
|
||||
for(int32_t i = 0; i < len; i++) {
|
||||
char ch = text.text[i];
|
||||
std::u32string::value_type ch = text.text[i];
|
||||
// FT_ULong ch = text.text[i];
|
||||
char c = text.text[i];
|
||||
|
||||
// Handle special characters
|
||||
if(ch == '\n') {
|
||||
@ -228,8 +230,7 @@ void UILabel::rebufferQuads(const std::vector<struct UILabelText> newTexts) {
|
||||
assertTrue(ch != '\n');
|
||||
|
||||
// Get font data.
|
||||
FT_ULong c = ch;
|
||||
auto charInfo = realText.texture->getCharacterData(c);
|
||||
auto charInfo = realText.texture->getCharacterData(ch);
|
||||
|
||||
// Word wrapping
|
||||
if(
|
||||
|
Reference in New Issue
Block a user