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:
Hermet Park 2021-06-10 20:00:55 +09:00
parent ea8d26a681
commit b7431eab3e

View file

@ -106,8 +106,8 @@ void tvgUpdateCmds(tvg::Canvas* canvas, float progress)
// Translate mask object with its stroke & update
pMaskShape->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)