mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
bindings/capi: Fix incompatible parameter
C API doesn't support default parameter, removed it. Issue: #2228
This commit is contained in:
parent
7a9ba52d0c
commit
55c4d6fe28
2 changed files with 2 additions and 2 deletions
|
@ -2361,7 +2361,7 @@ TVG_API Tvg_Result tvg_animation_set_segment(Tvg_Animation* animation, float beg
|
|||
* \retval TVG_RESULT_INSUFFICIENT_CONDITION In case the animation is not loaded.
|
||||
* \retval TVG_RESULT_INVALID_ARGUMENT When the given parameters are @c nullptr.
|
||||
*/
|
||||
TVG_API Tvg_Result tvg_animation_get_segment(Tvg_Animation* animation, float* begin, float* end = nullptr);
|
||||
TVG_API Tvg_Result tvg_animation_get_segment(Tvg_Animation* animation, float* begin, float* end);
|
||||
|
||||
|
||||
/*!
|
||||
|
|
|
@ -128,7 +128,7 @@ TEST_CASE("Animation Segment", "[capiAnimation]")
|
|||
REQUIRE(end == 1.0f);
|
||||
|
||||
//Get only segment begin
|
||||
REQUIRE(tvg_animation_get_segment(animation, &begin) == TVG_RESULT_SUCCESS);
|
||||
REQUIRE(tvg_animation_get_segment(animation, &begin, nullptr) == TVG_RESULT_SUCCESS);
|
||||
REQUIRE(begin == 0.0f);
|
||||
|
||||
//Get only segment end
|
||||
|
|
Loading…
Add table
Reference in a new issue