mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
(Windows) Fixed a couple of MSVC compiler warnings.
This commit is contained in:
parent
e553f68e90
commit
0060cd48dc
|
@ -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<size_t>(mSize.x), static_cast<size_t>(mSize.y));
|
||||
mTexture->rasterizeAt(mSize.x, mSize.y);
|
||||
onSizeChanged();
|
||||
}
|
||||
|
|
|
@ -238,15 +238,17 @@ void RatingComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
|
|||
else if (mSize.x == 0.0f)
|
||||
mSize.x = mSize.y * NUM_RATING_STARS;
|
||||
|
||||
const size_t sizeY {static_cast<size_t>(mSize.y)};
|
||||
|
||||
bool imgChanged {false};
|
||||
if (properties & PATH && elem->has("filledPath")) {
|
||||
mFilledTexture = TextureResource::get(elem->get<std::string>("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<std::string>("unfilledPath"), true, false,
|
||||
true, false, false, mSize.y, mSize.y);
|
||||
true, false, false, sizeY, sizeY);
|
||||
imgChanged = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue