mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
fix(label) calculating the clip area
This commit is contained in:
parent
29bfe60438
commit
57e211cc17
@ -857,7 +857,7 @@ static void draw_main(lv_event_t * e)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
lv_area_t txt_clip;
|
lv_area_t txt_clip;
|
||||||
bool is_common = _lv_area_intersect(&txt_clip, clip_area, clip_area);
|
bool is_common = _lv_area_intersect(&txt_clip, &txt_coords, clip_area);
|
||||||
if(!is_common) return;
|
if(!is_common) return;
|
||||||
|
|
||||||
if(label->long_mode == LV_LABEL_LONG_WRAP) {
|
if(label->long_mode == LV_LABEL_LONG_WRAP) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user