mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-17 05:25:43 +00:00
examples: updated samples.
one of children paint can not be updated immediately with a canvas. the root paint must be passed, otherwise requesting whole canvas is the best idea.
This commit is contained in:
parent
ea8d26a681
commit
b7431eab3e
1 changed files with 2 additions and 2 deletions
|
@ -106,8 +106,8 @@ void tvgUpdateCmds(tvg::Canvas* canvas, float progress)
|
||||||
// Translate mask object with its stroke & update
|
// Translate mask object with its stroke & update
|
||||||
pMaskShape->translate(0 , progress * 300);
|
pMaskShape->translate(0 , progress * 300);
|
||||||
pMask->translate(0 , progress * 300);
|
pMask->translate(0 , progress * 300);
|
||||||
canvas->update(pMaskShape);
|
|
||||||
canvas->update(pMask);
|
canvas->update(nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void transitSwCb(Elm_Transit_Effect *effect, Elm_Transit* transit, double progress)
|
void transitSwCb(Elm_Transit_Effect *effect, Elm_Transit* transit, double progress)
|
||||||
|
|
Loading…
Add table
Reference in a new issue