Fix missing new line handling for TextRenderer
This commit is contained in:
parent
de96cb4b16
commit
fe2f3350fe
@ -452,6 +452,19 @@ namespace Components
|
||||
}
|
||||
}
|
||||
|
||||
if(letter == '\n')
|
||||
{
|
||||
xa = startX;
|
||||
xy += static_cast<float>(font->pixelHeight) * yScale;
|
||||
continue;
|
||||
}
|
||||
|
||||
if(letter == '\r')
|
||||
{
|
||||
xy += static_cast<float>(font->pixelHeight) * yScale;
|
||||
continue;
|
||||
}
|
||||
|
||||
auto skipDrawing = false;
|
||||
if(decaying)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user