mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-09 14:13:43 +00:00
wasm: thorvg canvas resize problem.
The canvas syncs before changing a target buffer. issue: https://github.com/thorvg/thorvg/issues/2580
This commit is contained in:
parent
bc77c0ee74
commit
ec6e8a6e94
1 changed files with 2 additions and 0 deletions
|
@ -179,6 +179,8 @@ public:
|
||||||
if (!canvas || !animation) return;
|
if (!canvas || !animation) return;
|
||||||
if (this->width == width && this->height == height) return;
|
if (this->width == width && this->height == height) return;
|
||||||
|
|
||||||
|
canvas->sync();
|
||||||
|
|
||||||
this->width = width;
|
this->width = width;
|
||||||
this->height = height;
|
this->height = height;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue