mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15:38 +00:00
(Windows) Fixed two MSVC compiler warnings.
Also made a minor cosmetic debug log output change.
This commit is contained in:
parent
819d03776d
commit
fedba50a14
|
@ -37,7 +37,7 @@ void MiximageGenerator::startThread(std::promise<bool>* miximagePromise)
|
||||||
{
|
{
|
||||||
mMiximagePromise = miximagePromise;
|
mMiximagePromise = miximagePromise;
|
||||||
|
|
||||||
LOG(LogDebug) << "MiximageGenerator::MiximageGenerator(): Creating image for \""
|
LOG(LogDebug) << "MiximageGenerator::MiximageGenerator(): Creating miximage for \""
|
||||||
<< mGame->getFileName() << "\"";
|
<< mGame->getFileName() << "\"";
|
||||||
|
|
||||||
if (mGame->getMiximagePath() != "" && !Settings::getInstance()->getBool("MiximageOverwrite")) {
|
if (mGame->getMiximagePath() != "" && !Settings::getInstance()->getBool("MiximageOverwrite")) {
|
||||||
|
@ -639,7 +639,8 @@ void MiximageGenerator::addDropShadow(CImg<unsigned char>& image, unsigned int s
|
||||||
shadowImage.get_shared_channels(0, 2).fill(0);
|
shadowImage.get_shared_channels(0, 2).fill(0);
|
||||||
// Lower the transparency and apply the blur.
|
// Lower the transparency and apply the blur.
|
||||||
shadowImage.get_shared_channel(3) /= 0.6f;
|
shadowImage.get_shared_channel(3) /= 0.6f;
|
||||||
shadowImage.blur_box(shadowDistance, shadowDistance, 1, true, 2);
|
shadowImage.blur_box(static_cast<const float>(shadowDistance),
|
||||||
|
static_cast<const float>(shadowDistance), 1, true, 2);
|
||||||
shadowImage.blur(3, 0);
|
shadowImage.blur(3, 0);
|
||||||
|
|
||||||
// Add the mask to the alpha channel of the shadow image.
|
// Add the mask to the alpha channel of the shadow image.
|
||||||
|
|
Loading…
Reference in a new issue