From 2422d435090e7b545d89a80325db4ad91085472b Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 10 Jun 2021 22:26:17 +0200 Subject: [PATCH] (Windows) Fixed an MSVC compiler warning. --- es-app/src/MiximageGenerator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/es-app/src/MiximageGenerator.cpp b/es-app/src/MiximageGenerator.cpp index 251f77d2d..70e4f1736 100644 --- a/es-app/src/MiximageGenerator.cpp +++ b/es-app/src/MiximageGenerator.cpp @@ -739,7 +739,8 @@ void MiximageGenerator::calculateMarqueeSize(const unsigned int& targetWidth, scaleFactor = static_cast(adjustedTargetWidth) / static_cast(width); // For really tall and narrow images, we may have exceeded the target height. - if (static_cast(scaleFactor * static_cast(height)) > targetHeight) + if (static_cast(scaleFactor * static_cast(height)) > + static_cast(targetHeight)) scaleFactor = static_cast(targetHeight) / static_cast(height); width = static_cast(static_cast(width) * scaleFactor);