From b7431eab3e4c4f0eb6f65196082409c04786e378 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Thu, 10 Jun 2021 20:00:55 +0900 Subject: [PATCH] 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. --- src/examples/AnimateMasking.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/examples/AnimateMasking.cpp b/src/examples/AnimateMasking.cpp index 078f9151..4b506e21 100644 --- a/src/examples/AnimateMasking.cpp +++ b/src/examples/AnimateMasking.cpp @@ -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)