Commit c4daf8a
committed
fix(buttonmatrix): skip buttons outside clip area in draw_main
draw_main iterates all buttons unconditionally, performing style
resolution and draw dispatch even for buttons outside the clip area.
Add an lv_area_is_on() check to skip buttons that don't intersect
the layer's clip area.
The test area is extended by the same margin used in
invalidate_button_area (row/col gap with dpi/10 minimum) to account
for outline and shadow rendering outside the base button area. The
popover flag additionally extends the test area upward by the
button's height.
Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>1 parent 8dc2006 commit c4daf8a
1 file changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
656 | 669 | | |
657 | 670 | | |
658 | 671 | | |
| |||
685 | 698 | | |
686 | 699 | | |
687 | 700 | | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
688 | 715 | | |
689 | 716 | | |
690 | 717 | | |
| |||
0 commit comments