mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Improvements to some logo alignment issues in the System view carousel.
This commit is contained in:
parent
4970fce113
commit
b957cfcea6
|
@ -608,6 +608,11 @@ void SystemView::renderCarousel(const glm::mat4& trans)
|
|||
comp->setRotationOrigin(mCarousel.logoRotationOrigin);
|
||||
}
|
||||
comp->setScale(scale);
|
||||
// Partial workaround for single-pixel alignment issues at some resolutions and with
|
||||
// some logos.
|
||||
comp->setSize(comp->getSize().x, std::ceil(comp->getSize().y));
|
||||
comp->setPosition(comp->getPosition().x, std::round(comp->getPosition().y));
|
||||
|
||||
comp->setOpacity(static_cast<unsigned char>(opacity));
|
||||
comp->render(logoTrans);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue