fix(micropython) update examples for new API (#3059)

Related: https://github.com/lvgl/lv_binding_micropython/issues/202
This commit is contained in:
Amir Gonnen
2022-01-29 19:39:11 +02:00
committed by GitHub
parent f6a61df3ae
commit c7a414bfc6
7 changed files with 9 additions and 11 deletions

View File

@@ -41,7 +41,7 @@ def draw_event_cb(e):
a.x2 = dsc.p2.x
a.y1 = min(dsc.p1.y, dsc.p2.y)
a.y2 = cont_a.y2 - 13 # -13 cuts off where the rectangle draws over the chart margin. Without this an area of 0 doesn't look like 0
lv.draw_rect(a, dsc.clip_area, draw_rect_dsc)
dsc.draw_ctx.rect(draw_rect_dsc, a)
# Remove the mask
lv.draw_mask_free_param(line_mask_param)