From feef706ba4fa9f5c4a4b21499d6ff8613edfc4ba Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Tue, 6 Sep 2022 22:59:32 +0200 Subject: [PATCH] (Windows) Fixed an MSVC compiler warning. --- es-core/src/components/ImageComponent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }