Fixed more font stuff, works really really good now.

This commit is contained in:
2023-01-14 23:34:15 -08:00
parent 0558b3bb25
commit 18d3b074f9
14 changed files with 81 additions and 25 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()) {