From fe2f3350fec883f4842523ae276cacffc7e2eaa2 Mon Sep 17 00:00:00 2001 From: Jan Date: Mon, 6 Sep 2021 17:49:36 +0200 Subject: [PATCH] Fix missing new line handling for TextRenderer --- src/Components/Modules/TextRenderer.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Components/Modules/TextRenderer.cpp b/src/Components/Modules/TextRenderer.cpp index de3b6fe6..f264e19b 100644 --- a/src/Components/Modules/TextRenderer.cpp +++ b/src/Components/Modules/TextRenderer.cpp @@ -452,6 +452,19 @@ namespace Components } } + if(letter == '\n') + { + xa = startX; + xy += static_cast(font->pixelHeight) * yScale; + continue; + } + + if(letter == '\r') + { + xy += static_cast(font->pixelHeight) * yScale; + continue; + } + auto skipDrawing = false; if(decaying) {