Skip to content

Fix error when getting a pixelbuf slice #2936

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
May 21, 2020

Conversation

dunkmann00
Copy link

Previously this would ignore where the slice started. So every slice would return [0:length of slice]

Copy link

@jepler jepler left a comment

Choose a reason for hiding this comment

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

Thanks @dunkmann00! This looks like a definite improvement. However, I think that slices with negative "step" (also called "stride") are not properly supported yet. Please consider checking this and making another PR to improve it!

Testing performed: none

@jepler jepler merged commit 54a38fd into adafruit:master May 21, 2020
@dunkmann00 dunkmann00 deleted the pixelbuf-slice-fix branch May 22, 2020 00:31
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.

2 participants