mirror of
https://github.com/lvgl/lvgl.git
synced 2025-02-04 07:13:00 +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;
|
cur += arg_len * fmt_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TVG_CHECK_RETURN_RESULT(shape_set_stroke(shape, path));
|
||||||
|
|
||||||
float x_min = path->bounding_box[0];
|
float x_min = path->bounding_box[0];
|
||||||
float y_min = path->bounding_box[1];
|
float y_min = path->bounding_box[1];
|
||||||
float x_max = path->bounding_box[2];
|
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;
|
return Result::Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
TVG_CHECK_RETURN_RESULT(shape_set_stroke(shape, path));
|
|
||||||
|
|
||||||
auto cilp = Shape::gen();
|
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->appendRect(x_min, y_min, x_max - x_min, y_max - y_min, 0, 0));
|
||||||
TVG_CHECK_RETURN_RESULT(cilp->transform(matrix_conv(matrix)));
|
TVG_CHECK_RETURN_RESULT(cilp->transform(matrix_conv(matrix)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user