From 2219f614a10c6ef466ea328cf753e634d01414e5 Mon Sep 17 00:00:00 2001 From: lw19901203 Date: Fri, 6 Jun 2025 16:05:54 +0800 Subject: [PATCH] update path interface Signed-off-by: lw19901203 --- graphic/graphic_2d/native_drawing/drawing_path.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/graphic/graphic_2d/native_drawing/drawing_path.h b/graphic/graphic_2d/native_drawing/drawing_path.h index 1f4e18a2f..894e4def4 100644 --- a/graphic/graphic_2d/native_drawing/drawing_path.h +++ b/graphic/graphic_2d/native_drawing/drawing_path.h @@ -775,7 +775,7 @@ bool OH_Drawing_PathGetMatrix(OH_Drawing_Path* path, bool forceClosed, * @param count Returns with the size of array. * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. - * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if path, vals or count is nullptr, or acceptableError is + * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if path or count is nullptr, or acceptableError is * less than 0. * @since 20 * @version 1.0 @@ -795,7 +795,7 @@ OH_Drawing_ErrorCode OH_Drawing_PathApproximate(OH_Drawing_Path* path, float acc * @param interpolatedPath Indicates the pointer to an OH_Drawing_Path object to store the result. * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. - * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if eiter path, other, success or interpolatedPath is + * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if either path, other, success or interpolatedPath is * nullptr, or weight is outside the range [0, 1]. * @since 20 * @version 1.0 @@ -815,7 +815,7 @@ OH_Drawing_ErrorCode OH_Drawing_PathInterpolate(OH_Drawing_Path* path, OH_Drawin * The value is true if the paths are compatible, and false otherwise. * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. - * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if eiter path, other or result is nullptr. + * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if either path, other or result is nullptr. * @since 20 * @version 1.0 */ -- Gitee