Skip to content

Fix TileGrid flip_x, flip_y and transpose_xy#107

Merged
makermelissa merged 1 commit into
adafruit:mainfrom
s-ol:fix_tilegrid_xform
Mar 27, 2023
Merged

Fix TileGrid flip_x, flip_y and transpose_xy#107
makermelissa merged 1 commit into
adafruit:mainfrom
s-ol:fix_tilegrid_xform

Conversation

@s-ol
Copy link
Copy Markdown
Contributor

@s-ol s-ol commented Mar 25, 2023

The != works as an 'xor' condition on the booleans, since each of the transforms is a noop if executed twice.

This works as expected with all my existing CPy code, but I haven't done testing with a parent Group that has its own transform, so the order in which these are applied and possible interactions should still be verified against the native implementation.

Close #106

@jposada202020
Copy link
Copy Markdown

@s-ol Just wanted to say thank you!!!!. This makes display_text PRs much easier.
This is the result on a BlinkaPygame display for this PR adafruit/Adafruit_CircuitPython_Display_Text#187

image

without you PR...

image

@jposada202020 jposada202020 requested a review from a team March 25, 2023 18:56
Copy link
Copy Markdown
Collaborator

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for finding and fixing this.

@makermelissa makermelissa merged commit 61102c9 into adafruit:main Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TileGrid.transpose_xy has no effect

3 participants