Fixed a small font rendering issue in BusyComponent on some devices at low resolutions.

This commit is contained in:
Leon Styhre 2022-11-04 13:32:10 +01:00
parent 2c392ea32f
commit 8b5bb18357

View file

@ -54,7 +54,7 @@ void BusyComponent::onSizeChanged()
mGrid.setColWidthPerc(2, middleSpacerWidth / mSize.x); mGrid.setColWidthPerc(2, middleSpacerWidth / mSize.x);
mGrid.setColWidthPerc(3, textWidth / mSize.x); mGrid.setColWidthPerc(3, textWidth / mSize.x);
mGrid.setRowHeightPerc(1, textHeight / mSize.y); mGrid.setRowHeightPerc(1, textHeight / std::round(mSize.y));
mBackground.setCornerSize( mBackground.setCornerSize(
{16.0f * Renderer::getScreenWidthModifier(), 16.0f * Renderer::getScreenHeightModifier()}); {16.0f * Renderer::getScreenWidthModifier(), 16.0f * Renderer::getScreenHeightModifier()});