Fix missing new line handling for TextRenderer

This commit is contained in:
Jan 2021-09-06 17:49:36 +02:00
parent de96cb4b16
commit fe2f3350fe

View File

@ -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; auto skipDrawing = false;
if(decaying) if(decaying)
{ {