mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix(vg_lite_tvg): fix shape_set_stroke calling order error (#7039)
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
This commit is contained in:
parent
ebe288dc0f
commit
58c2ab59b0
@ -2324,6 +2324,8 @@ static Result shape_append_path(std::unique_ptr<Shape> & 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> & 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)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user