From 8895dbde2bc7a7de7c1bc3e2efc5b90a547b3104 Mon Sep 17 00:00:00 2001 From: l00844999 Date: Thu, 4 Jul 2024 16:08:57 +0800 Subject: [PATCH] drawing fix Signed-off-by: l00844999 --- graphic/graphic_2d/native_drawing/drawing_path.h | 4 ++-- graphic/graphic_2d/native_drawing/drawing_region.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/graphic/graphic_2d/native_drawing/drawing_path.h b/graphic/graphic_2d/native_drawing/drawing_path.h index c33bea8c8..7830356b0 100644 --- a/graphic/graphic_2d/native_drawing/drawing_path.h +++ b/graphic/graphic_2d/native_drawing/drawing_path.h @@ -649,13 +649,13 @@ bool OH_Drawing_PathGetPositionTangent(OH_Drawing_Path* path, bool forceClosed, * * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing * @param path Indicates the pointer to an OH_Drawing_Path object. - * @param srcPath Indicates the pointer to an OH_Drawing_Path object. + * @param other Indicates the pointer to an OH_Drawing_Path object. * @param op Indicates the operation to apply to combine. * @return Returns true if constructed path is not empty; returns false otherwise. * @since 12 * @version 1.0 */ -bool OH_Drawing_PathOp(OH_Drawing_Path* path, const OH_Drawing_Path* srcPath, OH_Drawing_PathOpMode op); +bool OH_Drawing_PathOp(OH_Drawing_Path* path, const OH_Drawing_Path* other, OH_Drawing_PathOpMode op); /** * @brief Computes the corresponding matrix at the specified distance. diff --git a/graphic/graphic_2d/native_drawing/drawing_region.h b/graphic/graphic_2d/native_drawing/drawing_region.h index d671444a3..b52574c8e 100644 --- a/graphic/graphic_2d/native_drawing/drawing_region.h +++ b/graphic/graphic_2d/native_drawing/drawing_region.h @@ -104,13 +104,13 @@ bool OH_Drawing_RegionContains(OH_Drawing_Region* region, int32_t x, int32_t y); * * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing * @param region Indicates the pointer to an OH_Drawing_Region object. - * @param dst Indicates the pointer to an OH_Drawing_Region object. + * @param other Indicates the pointer to an OH_Drawing_Region object. * @param op Indicates the operation to apply to combine. * @return Returns true if constructed Region is not empty; returns false otherwise. * @since 12 * @version 1.0 */ -bool OH_Drawing_RegionOp(OH_Drawing_Region* region, const OH_Drawing_Region* dst, OH_Drawing_RegionOpMode op); +bool OH_Drawing_RegionOp(OH_Drawing_Region* region, const OH_Drawing_Region* other, OH_Drawing_RegionOpMode op); /** * @brief Sets the region to the specified rect. -- Gitee