From fedba50a14a155083680121197a9d30ec4bf1273 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 7 Jun 2021 23:14:43 +0200 Subject: [PATCH] (Windows) Fixed two MSVC compiler warnings. Also made a minor cosmetic debug log output change. --- es-app/src/MiximageGenerator.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/es-app/src/MiximageGenerator.cpp b/es-app/src/MiximageGenerator.cpp index 7448e3b68..7b9304afb 100644 --- a/es-app/src/MiximageGenerator.cpp +++ b/es-app/src/MiximageGenerator.cpp @@ -37,7 +37,7 @@ void MiximageGenerator::startThread(std::promise* miximagePromise) { mMiximagePromise = miximagePromise; - LOG(LogDebug) << "MiximageGenerator::MiximageGenerator(): Creating image for \"" + LOG(LogDebug) << "MiximageGenerator::MiximageGenerator(): Creating miximage for \"" << mGame->getFileName() << "\""; if (mGame->getMiximagePath() != "" && !Settings::getInstance()->getBool("MiximageOverwrite")) { @@ -639,7 +639,8 @@ void MiximageGenerator::addDropShadow(CImg& image, unsigned int s shadowImage.get_shared_channels(0, 2).fill(0); // Lower the transparency and apply the blur. shadowImage.get_shared_channel(3) /= 0.6f; - shadowImage.blur_box(shadowDistance, shadowDistance, 1, true, 2); + shadowImage.blur_box(static_cast(shadowDistance), + static_cast(shadowDistance), 1, true, 2); shadowImage.blur(3, 0); // Add the mask to the alpha channel of the shadow image.