mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +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};
|
||||
|
||||
if (mTile) {
|
||||
mSourceWidth = svgImage->width;
|
||||
mSourceHeight = svgImage->height;
|
||||
}
|
||||
|
||||
// If there is no image size defined yet, then don't rasterize unless mForceRasterization has
|
||||
// been set.
|
||||
if (mSourceWidth == 0.0f && mSourceHeight == 0.0f) {
|
||||
|
|
Loading…
Reference in a new issue