mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Fixed an issue where the tile property for the image element did not work correctly with SVG images.
This commit is contained in:
parent
ef2f3f3ba9
commit
e2fb03dbf3
|
@ -71,6 +71,11 @@ bool TextureData::initSVGFromMemory(const std::string& fileData)
|
||||||
|
|
||||||
bool rasterize {true};
|
bool rasterize {true};
|
||||||
|
|
||||||
|
if (mTile) {
|
||||||
|
mSourceWidth = svgImage->width;
|
||||||
|
mSourceHeight = svgImage->height;
|
||||||
|
}
|
||||||
|
|
||||||
// If there is no image size defined yet, then don't rasterize unless mForceRasterization has
|
// If there is no image size defined yet, then don't rasterize unless mForceRasterization has
|
||||||
// been set.
|
// been set.
|
||||||
if (mSourceWidth == 0.0f && mSourceHeight == 0.0f) {
|
if (mSourceWidth == 0.0f && mSourceHeight == 0.0f) {
|
||||||
|
|
Loading…
Reference in a new issue