diff --git a/src/examples/Animation.cpp b/src/examples/Animation.cpp index f234c19f..0121c261 100644 --- a/src/examples/Animation.cpp +++ b/src/examples/Animation.cpp @@ -31,10 +31,11 @@ void tvgUpdateCmds(tvg::Canvas* canvas, tvg::Animation* animation, float progress) { if (!canvas) return; + canvas->clear(false); //Update animation frame only when it's changed if (animation->frame(animation->totalFrame() * progress) == tvg::Result::Success) { - canvas->update(animation->picture()); + canvas->update(); } } diff --git a/src/examples/Lottie.cpp b/src/examples/Lottie.cpp index b30f51bd..55fbd216 100644 --- a/src/examples/Lottie.cpp +++ b/src/examples/Lottie.cpp @@ -130,6 +130,8 @@ void tvgSwTest(uint32_t* buffer) void drawSwView(void* data, Eo* obj) { + swCanvas->clear(false); + //canvas update auto before = ecore_time_get();