(Windows) Fixed an MSVC compiler warning.

This commit is contained in:
Leon Styhre 2022-09-06 22:59:32 +02:00
parent 487cbd84bc
commit feef706ba4

View file

@ -118,8 +118,8 @@ void ImageComponent::resize(bool rasterize)
void ImageComponent::setTileAxes()
{
if (mTileWidth == 0.0f && mTileHeight == 0.0f) {
mTileWidth = mTexture->getSize().x;
mTileHeight = mTexture->getSize().y;
mTileWidth = static_cast<float>(mTexture->getSize().x);
mTileHeight = static_cast<float>(mTexture->getSize().y);
return;
}