mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
(Windows) Fixed an MSVC compiler warning.
This commit is contained in:
parent
b4028bc0f6
commit
2422d43509
|
@ -739,7 +739,8 @@ void MiximageGenerator::calculateMarqueeSize(const unsigned int& targetWidth,
|
|||
scaleFactor = static_cast<float>(adjustedTargetWidth) / static_cast<float>(width);
|
||||
|
||||
// For really tall and narrow images, we may have exceeded the target height.
|
||||
if (static_cast<int>(scaleFactor * static_cast<float>(height)) > targetHeight)
|
||||
if (static_cast<int>(scaleFactor * static_cast<float>(height)) >
|
||||
static_cast<float>(targetHeight))
|
||||
scaleFactor = static_cast<float>(targetHeight) / static_cast<float>(height);
|
||||
|
||||
width = static_cast<int>(static_cast<float>(width) * scaleFactor);
|
||||
|
|
Loading…
Reference in a new issue