From 2e35f4eabbb2c3337c88dbd2b7d207765897e8dc Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Tue, 14 Jan 2025 19:06:50 +0900 Subject: [PATCH] doc: minor capi doc correction --- src/bindings/capi/thorvg_capi.h | 4 ++-- src/bindings/capi/tvgCapi.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bindings/capi/thorvg_capi.h b/src/bindings/capi/thorvg_capi.h index 71ea8f57..0ad11a03 100644 --- a/src/bindings/capi/thorvg_capi.h +++ b/src/bindings/capi/thorvg_capi.h @@ -1970,14 +1970,14 @@ TVG_API Tvg_Paint* tvg_scene_new(void); * This function appends a paint object to the scene. * * @param[in] scene A Tvg_Paint pointer to the scene object. - * @param[in] target A pointer to the Paint object to be added into the scene. + * @param[in] paint A pointer to the Paint object to be added into the scene. * * @note The ownership of the @p paint object is transferred to the scene upon addition. * * @see tvg_scene_remove() * @see tvg_scene_push_at() */ -TVG_API Tvg_Result tvg_scene_push(Tvg_Paint* scene, Tvg_Paint* target); +TVG_API Tvg_Result tvg_scene_push(Tvg_Paint* scene, Tvg_Paint* paint); /** * @brief Adds a paint object to the scene. diff --git a/src/bindings/capi/tvgCapi.cpp b/src/bindings/capi/tvgCapi.cpp index 29dddb7e..d205bd48 100644 --- a/src/bindings/capi/tvgCapi.cpp +++ b/src/bindings/capi/tvgCapi.cpp @@ -123,10 +123,10 @@ TVG_API Tvg_Result tvg_canvas_push(Tvg_Canvas* canvas, Tvg_Paint* paint) } -TVG_API Tvg_Result tvg_canvas_push_at(Tvg_Canvas* canvas, Tvg_Paint* paint, Tvg_Paint* at) +TVG_API Tvg_Result tvg_canvas_push_at(Tvg_Canvas* canvas, Tvg_Paint* target, Tvg_Paint* at) { - if (!canvas || !paint || !at) return TVG_RESULT_INVALID_ARGUMENT; - return (Tvg_Result) reinterpret_cast(canvas)->push((Paint*)paint, (Paint*) at); + if (!canvas || !target || !at) return TVG_RESULT_INVALID_ARGUMENT; + return (Tvg_Result) reinterpret_cast(canvas)->push((Paint*)target, (Paint*) at); }