mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Properly fixed a cosmetic glitch in the System view.
This commit is contained in:
parent
8b5f65c789
commit
96c742dee4
|
@ -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()));
|
||||||
|
|
Loading…
Reference in a new issue