Fixed more font stuff, works really really good now.
This commit is contained in:
@ -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()) {
|
||||
|
Reference in New Issue
Block a user