(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() void ImageComponent::setTileAxes()
{ {
if (mTileWidth == 0.0f && mTileHeight == 0.0f) { if (mTileWidth == 0.0f && mTileHeight == 0.0f) {
mTileWidth = mTexture->getSize().x; mTileWidth = static_cast<float>(mTexture->getSize().x);
mTileHeight = mTexture->getSize().y; mTileHeight = static_cast<float>(mTexture->getSize().y);
return; return;
} }