Fixed a cosmetic text sizing issue in DateTimeEditComponent.

This commit is contained in:
Leon Styhre 2022-12-18 15:53:12 +01:00
parent 54f9aff21f
commit 8f2065e491

View file

@ -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};