diff --git a/src/examples/Animation.cpp b/src/examples/Animation.cpp index 87cc05f9..3c550cdd 100644 --- a/src/examples/Animation.cpp +++ b/src/examples/Animation.cpp @@ -86,7 +86,7 @@ void tvgSwTest(uint32_t* buffer) picture->scale(scale); picture->translate(shiftX, shiftY); - swCanvas->push(unique_ptr(picture)); + swCanvas->push(tvg::cast(picture)); //Run animation loop elm_transit_duration_set(transit, animation->duration()); diff --git a/src/examples/Lottie.cpp b/src/examples/Lottie.cpp index 02481542..277b1298 100644 --- a/src/examples/Lottie.cpp +++ b/src/examples/Lottie.cpp @@ -117,7 +117,7 @@ void tvgSwTest(uint32_t* buffer) elm_transit_repeat_times_set(transit, -1); elm_transit_go(transit); - swCanvas->push(unique_ptr(animation->picture())); + swCanvas->push(tvg::cast(animation->picture())); } } diff --git a/src/examples/Stress.cpp b/src/examples/Stress.cpp index fd2663de..5d0c2a96 100644 --- a/src/examples/Stress.cpp +++ b/src/examples/Stress.cpp @@ -102,7 +102,7 @@ void tvgDrawCmds(tvg::Canvas* canvas) This means it earns the time to finish loading svg resources, otherwise you can push pictures immediately. */ for (auto picture : pictures) { - canvas->push(unique_ptr(picture)); + canvas->push(tvg::cast(picture)); } }