mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Fixed a minor graphical glitch in CarouselComponent.
This commit is contained in:
parent
8bbaec229f
commit
7f5ed1c41d
|
@ -695,6 +695,10 @@ template <typename T> void CarouselComponent<T>::render(const glm::mat4& parentT
|
||||||
yOff += mSize.y * mVerticalOffset;
|
yOff += mSize.y * mVerticalOffset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This is necessary to avoid single-pixel horizontal jumps at the end positions.
|
||||||
|
if (mType != CarouselType::HORIZONTAL)
|
||||||
|
xOff = std::round(xOff);
|
||||||
|
|
||||||
int center {0};
|
int center {0};
|
||||||
int centerOffset {0};
|
int centerOffset {0};
|
||||||
// Needed to make sure that overlapping items are renderered correctly.
|
// Needed to make sure that overlapping items are renderered correctly.
|
||||||
|
|
Loading…
Reference in a new issue