From: Seungho Baek Date: Thu, 8 May 2025 07:03:29 +0000 (+0900) Subject: Fix to use SpringData::Getduration as method X-Git-Tag: accepted/tizen/unified/20250515.075554^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be537341909cda960d5c45cf9ff4bbae5aacb8ec;p=platform%2Fcore%2Fuifw%2Fdali-demo.git Fix to use SpringData::Getduration as method Change-Id: I73e1b1c1cfb4a9e441ed429df947f5f032185049 Signed-off-by: Seungho Baek --- diff --git a/examples/spring-alphafunction/spring-alphafunction-example.cpp b/examples/spring-alphafunction/spring-alphafunction-example.cpp index d79fcc6eb..05aadf792 100644 --- a/examples/spring-alphafunction/spring-alphafunction-example.cpp +++ b/examples/spring-alphafunction/spring-alphafunction-example.cpp @@ -110,17 +110,17 @@ public: animation.SetLooping(true); animation.Play(); - animation = Animation::New(SpringData::GetDuration({100.0f, 10.0f, 1.0f})); // Set the longest duration. + animation = Animation::New(SpringData{100.0f, 10.0f, 1.0f}.GetDuration()); // Set the longest duration. animation.AnimateTo(Dali::Property(mS100D10M1, Dali::Actor::Property::POSITION_X), 500.0f, Dali::AlphaFunction({100.0f, 10.0f, 1.0f})); animation.SetLooping(true); animation.Play(); - animation = Animation::New(SpringData::GetDuration({4420.0f, 20.8f, 1.0f})); // Set the longest duration. + animation = Animation::New(SpringData({4420.0f, 20.8f, 1.0f}).GetDuration()); // Set the longest duration. animation.AnimateTo(Dali::Property(mS4420D20_8M1, Dali::Actor::Property::POSITION_X), 500.0f, Dali::AlphaFunction({4420.0f, 20.8f, 1.0f})); animation.SetLooping(true); animation.Play(); - animation = Animation::New(SpringData::GetDuration({1000.0f, 10.0f, 10.0f})); // Set the longest duration. + animation = Animation::New(SpringData({1000.0f, 10.0f, 10.0f}).GetDuration()); // Set the longest duration. animation.AnimateTo(Dali::Property(mS1000D10M10, Dali::Actor::Property::POSITION_X), 500.0f, Dali::AlphaFunction({1000.0f, 10.0f, 10.0f})); animation.SetLooping(true); animation.Play();