This commit is contained in:
github-actions[bot]
2020-09-14 18:15:08 +00:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
- Adjust button matrix button width to include padding when spanning multiple units.
- Add rounding to btnmatrix line height calculation
- Add `decmopr_buf` to GC roots
- Fix divisioin by zero in draw_pattern (lv_draw_rect.c) if the image or letter is not found
## v7.4.0 (01.09.2020)

View File

@@ -1229,6 +1229,9 @@ static void draw_pattern(const lv_area_t * coords, const lv_area_t * clip, const
return;
}
/*Can't draw zero sized images*/
if(img_w == 0 || img_h == 0) return;
lv_area_t coords_tmp;
if(dsc->pattern_repeat) {