mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 15:15:37 +00:00
Fixed two MSVC compiler warnings.
This commit is contained in:
parent
09e5095a08
commit
69fa54f61a
|
@ -227,7 +227,7 @@ size_t TextureData::width()
|
|||
// If it's an SVG image, the size was correctly set to the scaled-up values during the
|
||||
// rasterization, so only multiply by the scale factor if it's a raster file.
|
||||
if (!mScalable)
|
||||
return mWidth * mScaleDuringLoad;
|
||||
return static_cast<size_t>(mWidth * mScaleDuringLoad);
|
||||
else
|
||||
return mWidth;
|
||||
}
|
||||
|
@ -237,7 +237,7 @@ size_t TextureData::height()
|
|||
if (mHeight == 0)
|
||||
load();
|
||||
if (!mScalable)
|
||||
return mHeight * mScaleDuringLoad;
|
||||
return static_cast<size_t>(mHeight * mScaleDuringLoad);
|
||||
else
|
||||
return mHeight;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue