From 31725b8d335f6db7567ea5ecf380753d48c4e5f8 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Tue, 13 Oct 2020 13:31:29 +0900 Subject: [PATCH] examples: update DirectUpdate Shape::clear() method is changed. Now it clear all properties, the examples must be updated. --- src/examples/DirectUpdate.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/examples/DirectUpdate.cpp b/src/examples/DirectUpdate.cpp index 6dea62ea..b12355d9 100644 --- a/src/examples/DirectUpdate.cpp +++ b/src/examples/DirectUpdate.cpp @@ -40,12 +40,13 @@ void tvgUpdateCmds(tvg::Canvas* canvas, float progress) if (!canvas) return; /* Update shape directly. - You can update only necessary properties of this shape, - while retaining other properties. */ + You can update necessary properties of this shape. */ //Reset Shape if (pShape->reset() == tvg::Result::Success) { pShape->appendRect(-100 + (800 * progress), -100 + (800 * progress), 200, 200, (100 * progress), (100 * progress)); + pShape->fill(127, 255, 255, 255); + pShape->stroke(0, 0, 255, 255); pShape->stroke(30 * progress); //Update shape for drawing (this may work asynchronously)