mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
examples: use tvg::cast().
This commit is contained in:
parent
6cb2a37326
commit
5c45e64b93
3 changed files with 3 additions and 3 deletions
|
@ -86,7 +86,7 @@ void tvgSwTest(uint32_t* buffer)
|
||||||
picture->scale(scale);
|
picture->scale(scale);
|
||||||
picture->translate(shiftX, shiftY);
|
picture->translate(shiftX, shiftY);
|
||||||
|
|
||||||
swCanvas->push(unique_ptr<tvg::Picture>(picture));
|
swCanvas->push(tvg::cast<tvg::Picture>(picture));
|
||||||
|
|
||||||
//Run animation loop
|
//Run animation loop
|
||||||
elm_transit_duration_set(transit, animation->duration());
|
elm_transit_duration_set(transit, animation->duration());
|
||||||
|
|
|
@ -117,7 +117,7 @@ void tvgSwTest(uint32_t* buffer)
|
||||||
elm_transit_repeat_times_set(transit, -1);
|
elm_transit_repeat_times_set(transit, -1);
|
||||||
elm_transit_go(transit);
|
elm_transit_go(transit);
|
||||||
|
|
||||||
swCanvas->push(unique_ptr<tvg::Picture>(animation->picture()));
|
swCanvas->push(tvg::cast<tvg::Picture>(animation->picture()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,7 @@ void tvgDrawCmds(tvg::Canvas* canvas)
|
||||||
This means it earns the time to finish loading svg resources,
|
This means it earns the time to finish loading svg resources,
|
||||||
otherwise you can push pictures immediately. */
|
otherwise you can push pictures immediately. */
|
||||||
for (auto picture : pictures) {
|
for (auto picture : pictures) {
|
||||||
canvas->push(unique_ptr<tvg::Picture>(picture));
|
canvas->push(tvg::cast<tvg::Picture>(picture));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue