1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

lv_draw_label: optimization for long texts (uncomment some lines)

This commit is contained in:
Gabor Kiss-Vamosi 2018-12-17 14:34:26 +01:00
parent 60c07120c7
commit 93781909bb

View File

@ -129,7 +129,7 @@ void lv_draw_label(const lv_area_t * coords, const lv_area_t * mask, const lv_st
while(i < line_end) {
letter = lv_txt_encoded_next(txt, &i);
// if(pos.y + line_height < mask->y1) continue;
if(pos.y + line_height < mask->y1) continue;
/*Handle the re-color command*/
if((flag & LV_TXT_FLAG_RECOLOR) != 0) {
@ -200,7 +200,7 @@ void lv_draw_label(const lv_area_t * coords, const lv_area_t * mask, const lv_st
/*Go the next line position*/
pos.y += line_height;
// if(pos.y > mask->y2) return;
if(pos.y > mask->y2) return;
}
}