Repository navigation
displayio: include vectorio members in a Group's previous area - #12022
Merged
tannewt merged 2 commits intoDec 4, 2026
Merged
Conversation
displayio_group_get_previous_area() only handled TileGrid and Group members. For a draw protocol member (vectorio shape, videocore buffer) neither branch ran and layer_area was used without being set, so when a Group containing vectorio shapes was removed from its parent, the shapes' area was not marked dirty and the shapes stayed on screen. Get the area from draw_get_dirty_area(), as _remove_layer() does for a direct draw protocol member, and skip any member that has no area instead of reading layer_area uninitialized. Fixes adafruit#12003 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tannewt
requested changes
Dec 3, 2026
tannewt
left a comment
Member
There was a problem hiding this comment.
Please add a native_sim based test that tests this case. I appreciate your manual testing. Adding a native_sim test will ensure it doesn't get broken in the future too.
A Group with a Circle and a Rectangle is shown and then removed from the root group. The capture after the removal must show only the rectangle that stays in the root group. Without the previous commit the legacy compositor leaves the removed shapes on screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
|
Added |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #12003.
displayio_group_get_previous_area()handled only TileGrid and Group members. For a draw protocol member (vectorio shape, videocore buffer), neither branch ran andlayer_areawas read uninitialized. Removing a Group that contains vectorio shapes therefore left the shapes on screen.Fix: get the area from
draw_get_dirty_area(), as_remove_layer()already does for a direct draw protocol member, and skip members with no area.Testing
PyPortal (SAMD51, ILI9341), script from #12003:
mainat 634fdedmain+ fixBuilt with Arm GNU Toolchain 15.3.Rel1 (
make BOARD=pyportal).tools/codeformat.pyreports no changes.LLM assistance
Patch and builds by Claude Code; hardware test run and checked manually.
🤖 Generated with Claude Code