mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-28 13:36:27 +08:00
fix(lv_draw_sw_line): fix lv_draw_line function causes a crash. (#7248)
Co-authored-by: cmszxl <532538099@qq.com>
This commit is contained in:
@@ -65,8 +65,8 @@ void lv_draw_sw_line(lv_draw_unit_t * draw_unit, const lv_draw_line_dsc_t * dsc)
|
|||||||
if(!is_common) return;
|
if(!is_common) return;
|
||||||
|
|
||||||
LV_PROFILER_DRAW_BEGIN;
|
LV_PROFILER_DRAW_BEGIN;
|
||||||
if(dsc->p1.y == dsc->p2.y) draw_line_hor(draw_unit, dsc);
|
if((int32_t)dsc->p1.y == (int32_t)dsc->p2.y) draw_line_hor(draw_unit, dsc);
|
||||||
else if(dsc->p1.x == dsc->p2.x) draw_line_ver(draw_unit, dsc);
|
else if((int32_t)dsc->p1.x == (int32_t)dsc->p2.x) draw_line_ver(draw_unit, dsc);
|
||||||
else draw_line_skew(draw_unit, dsc);
|
else draw_line_skew(draw_unit, dsc);
|
||||||
|
|
||||||
if(dsc->round_end || dsc->round_start) {
|
if(dsc->round_end || dsc->round_start) {
|
||||||
|
|||||||
Reference in New Issue
Block a user