mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 22:25:38 +00:00
properly render carousel for system configured with only 1 system
This commit is contained in:
parent
a685f09368
commit
c6a0449be0
|
@ -466,8 +466,15 @@ void SystemView::renderCarousel(const Eigen::Affine3f& trans)
|
|||
|
||||
// Adding texture loading buffers depending on scrolling speed and status
|
||||
int bufferIndex = getScrollingVelocity() + 1;
|
||||
int bufferLeft = logoBuffersLeft[bufferIndex];
|
||||
int bufferRight = logoBuffersRight[bufferIndex];
|
||||
if (logoCount == 1)
|
||||
{
|
||||
bufferLeft = 0;
|
||||
bufferRight = 0;
|
||||
}
|
||||
|
||||
for (int i = center - logoCount / 2 + logoBuffersLeft[bufferIndex]; i <= center + logoCount / 2 + logoBuffersRight[bufferIndex]; i++)
|
||||
for (int i = center - logoCount / 2 + bufferLeft; i <= center + logoCount / 2 + bufferRight; i++)
|
||||
{
|
||||
int index = i;
|
||||
while (index < 0)
|
||||
|
|
Loading…
Reference in a new issue