From 8f2065e4913af6f714454918bfd35849a726d7aa Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 18 Dec 2022 15:53:12 +0100 Subject: [PATCH] Fixed a cosmetic text sizing issue in DateTimeEditComponent. --- es-core/src/components/DateTimeEditComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-core/src/components/DateTimeEditComponent.cpp b/es-core/src/components/DateTimeEditComponent.cpp index f8e62bdf1..f00baf929 100644 --- a/es-core/src/components/DateTimeEditComponent.cpp +++ b/es-core/src/components/DateTimeEditComponent.cpp @@ -173,7 +173,7 @@ void DateTimeEditComponent::render(const glm::mat4& parentTrans) float referenceSize {0.0f}; if (mAlignRight) - referenceSize = mParent->getSize().x * 0.1045f; + referenceSize = std::round(mParent->getSize().x * 0.1045f); // Vertically center. glm::vec3 off {0.0f, (mSize.y - mTextCache->metrics.size.y) / 2.0f, 0.0f};