Added a rounding when sizing BusyComponent to improve its rendering at low resolutions

This commit is contained in:
Leon Styhre 2023-07-29 16:33:07 +02:00
parent 772f2dea90
commit f39d09d6b7

View file

@ -29,7 +29,7 @@ BusyComponent::BusyComponent()
void BusyComponent::onSizeChanged()
{
mGrid.setSize(mSize);
mGrid.setSize(glm::round(mSize));
if (mSize.x == 0.0f || mSize.y == 0.0f)
return;