diff --git a/es-core/src/components/ImageComponent.cpp b/es-core/src/components/ImageComponent.cpp index af1d17bd5..30759106a 100644 --- a/es-core/src/components/ImageComponent.cpp +++ b/es-core/src/components/ImageComponent.cpp @@ -169,8 +169,9 @@ void ImageComponent::setImage(const std::string& path, bool tile) if (isScalable) { resize(false); mTexture.reset(); - mTexture = TextureResource::get(path, tile, mForceLoad, mDynamic, mLinearInterpolation, - false, mSize.x, mSize.y); + mTexture = + TextureResource::get(path, tile, mForceLoad, mDynamic, mLinearInterpolation, false, + static_cast(mSize.x), static_cast(mSize.y)); mTexture->rasterizeAt(mSize.x, mSize.y); onSizeChanged(); } diff --git a/es-core/src/components/RatingComponent.cpp b/es-core/src/components/RatingComponent.cpp index c00b404dd..05daef9af 100644 --- a/es-core/src/components/RatingComponent.cpp +++ b/es-core/src/components/RatingComponent.cpp @@ -238,15 +238,17 @@ void RatingComponent::applyTheme(const std::shared_ptr& theme, else if (mSize.x == 0.0f) mSize.x = mSize.y * NUM_RATING_STARS; + const size_t sizeY {static_cast(mSize.y)}; + bool imgChanged {false}; if (properties & PATH && elem->has("filledPath")) { mFilledTexture = TextureResource::get(elem->get("filledPath"), true, false, - true, false, false, mSize.y, mSize.y); + true, false, false, sizeY, sizeY); imgChanged = true; } if (properties & PATH && elem->has("unfilledPath")) { mUnfilledTexture = TextureResource::get(elem->get("unfilledPath"), true, false, - true, false, false, mSize.y, mSize.y); + true, false, false, sizeY, sizeY); imgChanged = true; }