Fixed more font stuff, works really really good now.

This commit is contained in:
2023-01-14 23:34:15 -08:00
parent 2e55754c49
commit dbe2409287
16 changed files with 87 additions and 27 deletions

View File

@ -75,6 +75,11 @@ void UIComponent::updatePositions() {
this->relativeY = (this->relativeY / 2.0f) - (this->height / 2.0f) + this->alignment[1];
}
this->relativeX = mathRound<float_t>(this->relativeX);
this->relativeY = mathRound<float_t>(this->relativeY);
this->width = mathRound<float_t>(this->width);
this->height = mathRound<float_t>(this->height);
// Update children
auto it = this->children.begin();
while(it != this->children.end()) {