Properly fixed a cosmetic glitch in the System view.

This commit is contained in:
Leon Styhre 2021-01-19 20:17:54 +01:00
parent 8b5f65c789
commit 96c742dee4

View file

@ -647,9 +647,9 @@ void SystemView::getDefaultElements(void)
mCarousel.type = HORIZONTAL; mCarousel.type = HORIZONTAL;
mCarousel.logoAlignment = ALIGN_CENTER; mCarousel.logoAlignment = ALIGN_CENTER;
mCarousel.size.x() = mSize.x(); mCarousel.size.x() = mSize.x();
mCarousel.size.y() = 0.2325f * mSize.y(); mCarousel.size.y() = floorf(0.2325f * mSize.y());
mCarousel.pos.x() = 0.0f; mCarousel.pos.x() = 0.0f;
mCarousel.pos.y() = 0.5f * (mSize.y() - mCarousel.size.y()); mCarousel.pos.y() = floorf(0.5f * (mSize.y() - mCarousel.size.y()));
mCarousel.origin.x() = 0.0f; mCarousel.origin.x() = 0.0f;
mCarousel.origin.y() = 0.0f; mCarousel.origin.y() = 0.0f;
mCarousel.color = 0xFFFFFFD8; mCarousel.color = 0xFFFFFFD8;
@ -666,8 +666,7 @@ void SystemView::getDefaultElements(void)
// System info bar. // System info bar.
mSystemInfo.setSize(mSize.x(), mSystemInfo.getFont()->getLetterHeight() * 2.2f); mSystemInfo.setSize(mSize.x(), mSystemInfo.getFont()->getLetterHeight() * 2.2f);
mSystemInfo.setPosition(0, (mCarousel.pos.y() + mCarousel.size.y() - mSystemInfo.setPosition(0, mCarousel.pos.y() + mCarousel.size.y());
(0.4f * Renderer::getScreenHeightModifier())));
mSystemInfo.setBackgroundColor(0xDDDDDDD8); mSystemInfo.setBackgroundColor(0xDDDDDDD8);
mSystemInfo.setRenderBackground(true); mSystemInfo.setRenderBackground(true);
mSystemInfo.setFont(Font::get(static_cast<int>(0.035f * mSize.y()), Font::getDefaultPath())); mSystemInfo.setFont(Font::get(static_cast<int>(0.035f * mSize.y()), Font::getDefaultPath()));