From 86ad917bc86550b8a10c0d91b16189ec76ecff13 Mon Sep 17 00:00:00 2001
From: Leon Styhre <leon@leonstyhre.com>
Date: Thu, 17 Mar 2022 19:34:41 +0100
Subject: [PATCH] Set logo scaling to linear interpolation in
 CarouselComponent.

---
 es-core/src/components/CarouselComponent.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/es-core/src/components/CarouselComponent.cpp b/es-core/src/components/CarouselComponent.cpp
index fabfdea2b..0fa932d44 100644
--- a/es-core/src/components/CarouselComponent.cpp
+++ b/es-core/src/components/CarouselComponent.cpp
@@ -52,6 +52,7 @@ void CarouselComponent::addEntry(const std::shared_ptr<ThemeData>& theme,
             if ((!path.empty() && ResourceManager::getInstance().fileExists(path)) ||
                 (!defaultPath.empty() && ResourceManager::getInstance().fileExists(defaultPath))) {
                 auto logo = std::make_shared<ImageComponent>(false, false);
+                logo->setLinearInterpolation(true);
                 logo->setMaxSize(glm::round(mLogoSize * mLogoScale));
                 logo->applyTheme(theme, "system", "image_logo",
                                  ThemeFlags::PATH | ThemeFlags::COLOR);
@@ -64,6 +65,7 @@ void CarouselComponent::addEntry(const std::shared_ptr<ThemeData>& theme,
         if (entry.data.logoPath != "" &&
             ResourceManager::getInstance().fileExists(entry.data.logoPath)) {
             auto logo = std::make_shared<ImageComponent>(false, false);
+            logo->setLinearInterpolation(true);
             logo->setImage(entry.data.logoPath);
             logo->setMaxSize(glm::round(mLogoSize * mLogoScale));
             logo->applyTheme(theme, "system", "", ThemeFlags::ALL);
@@ -73,6 +75,7 @@ void CarouselComponent::addEntry(const std::shared_ptr<ThemeData>& theme,
         else if (entry.data.defaultLogoPath != "" &&
                  ResourceManager::getInstance().fileExists(entry.data.defaultLogoPath)) {
             auto defaultLogo = std::make_shared<ImageComponent>(false, false);
+            defaultLogo->setLinearInterpolation(true);
             defaultLogo->setImage(entry.data.defaultLogoPath);
             defaultLogo->setMaxSize(glm::round(mLogoSize * mLogoScale));
             defaultLogo->applyTheme(theme, "system", "", ThemeFlags::ALL);