From 063ffd719524b10dc05b3551bd19ddf572b0caa1 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 29 Oct 2021 19:48:07 +0200 Subject: [PATCH] Fixed an issue where the system carousel and info bar would glitch during slide transitions. --- es-app/src/views/SystemView.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/es-app/src/views/SystemView.cpp b/es-app/src/views/SystemView.cpp index 55fb6d81f..152e946ee 100644 --- a/es-app/src/views/SystemView.cpp +++ b/es-app/src/views/SystemView.cpp @@ -501,9 +501,10 @@ void SystemView::renderCarousel(const glm::mat4& trans) mCarousel.origin.y * mCarousel.size.y * -1.0f, 0.0f}); glm::vec2 clipPos{carouselTrans[3].x, carouselTrans[3].y}; - Renderer::pushClipRect( - glm::ivec2{static_cast(clipPos.x), static_cast(clipPos.y)}, - glm::ivec2{static_cast(mCarousel.size.x), static_cast(mCarousel.size.y)}); + Renderer::pushClipRect(glm::ivec2{static_cast(std::round(clipPos.x)), + static_cast(std::round(clipPos.y))}, + glm::ivec2{static_cast(std::round(mCarousel.size.x)), + static_cast(std::round(mCarousel.size.y))}); Renderer::setMatrix(carouselTrans); Renderer::drawRect(0.0f, 0.0f, mCarousel.size.x, mCarousel.size.y, mCarousel.color,