mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Fixed a cosmetic text sizing issue in DateTimeEditComponent.
This commit is contained in:
parent
54f9aff21f
commit
8f2065e491
|
@ -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};
|
||||
|
|
Loading…
Reference in a new issue