From 58c2ab59b02e16787e89de2dc422cc5cc27e68bc Mon Sep 17 00:00:00 2001 From: VIFEX Date: Sat, 12 Oct 2024 10:03:07 +0800 Subject: [PATCH] fix(vg_lite_tvg): fix shape_set_stroke calling order error (#7039) Signed-off-by: FASTSHIFT --- src/others/vg_lite_tvg/vg_lite_tvg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/others/vg_lite_tvg/vg_lite_tvg.cpp b/src/others/vg_lite_tvg/vg_lite_tvg.cpp index 81efaa3a4..47d1930c8 100644 --- a/src/others/vg_lite_tvg/vg_lite_tvg.cpp +++ b/src/others/vg_lite_tvg/vg_lite_tvg.cpp @@ -2324,6 +2324,8 @@ static Result shape_append_path(std::unique_ptr & shape, vg_lite_path_t * cur += arg_len * fmt_len; } + TVG_CHECK_RETURN_RESULT(shape_set_stroke(shape, path)); + float x_min = path->bounding_box[0]; float y_min = path->bounding_box[1]; float x_max = path->bounding_box[2]; @@ -2334,8 +2336,6 @@ static Result shape_append_path(std::unique_ptr & shape, vg_lite_path_t * return Result::Success; } - TVG_CHECK_RETURN_RESULT(shape_set_stroke(shape, path)); - auto cilp = Shape::gen(); TVG_CHECK_RETURN_RESULT(cilp->appendRect(x_min, y_min, x_max - x_min, y_max - y_min, 0, 0)); TVG_CHECK_RETURN_RESULT(cilp->transform(matrix_conv(matrix)));