diff --git a/es-core/src/components/ImageComponent.cpp b/es-core/src/components/ImageComponent.cpp index 537a7a6d6..4f6adef60 100644 --- a/es-core/src/components/ImageComponent.cpp +++ b/es-core/src/components/ImageComponent.cpp @@ -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(mTexture->getSize().x); + mTileHeight = static_cast(mTexture->getSize().y); return; }