Skip to content

Fix TileGrid flip_x, flip_y and transpose_xy #107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2023

Conversation

s-ol
Copy link
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

@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
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