Skip to content

fix: use correct display coordinates #1

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

Closed
wants to merge 2 commits into from

Conversation

zabackary
Copy link
Contributor

vexDisplayCopyRect takes the top left and bottom right points to be copied, not the rect height. This PR adjusts the bottom right point to be correct.

Additionally, I changed the color conversion code to use into_storage which does a zero-copy cast to u32 instead of the old method which goes through an rgb::Rgb.

it's probably being inlined anyway but using `into_storage` removes a
layer of unnecessary indirection.
@zabackary
Copy link
Contributor Author

I'm going to close this now in favor of a new PR which includes some additional performance work and API changes.

@zabackary zabackary closed this Apr 18, 2025
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.

1 participant