mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +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
290b52198f
commit
5ae556cf13
1 changed files with 2 additions and 0 deletions
|
@ -181,6 +181,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