From 311595ff62243017de8be9a7879705270fc35fde Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 5 Sep 2022 23:03:04 +0200 Subject: [PATCH] Removed an unnecessary rounding in TextComponent. --- es-core/src/components/TextComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-core/src/components/TextComponent.cpp b/es-core/src/components/TextComponent.cpp index 21ff64219..c428fbf96 100644 --- a/es-core/src/components/TextComponent.cpp +++ b/es-core/src/components/TextComponent.cpp @@ -204,7 +204,7 @@ void TextComponent::render(const glm::mat4& parentTrans) mRenderer->drawRect(0.0f, 0.0f, mSize.x, mSize.y, 0x0000FF33, 0x0000FF33); } - trans = glm::translate(trans, glm::vec3 {0.0f, std::round(yOff), 0.0f}); + trans = glm::translate(trans, glm::vec3 {0.0f, yOff, 0.0f}); mRenderer->setMatrix(trans); // Draw the text area, where the text actually is located.