Skip to content

Bitmaptools bugfixes #5605

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 7 commits into from
Nov 22, 2021
Merged

Bitmaptools bugfixes #5605

merged 7 commits into from
Nov 22, 2021

Conversation

jepler
Copy link

@jepler jepler commented Nov 21, 2021

The main bugfix is one that caused wrong blending when the int 0 or 1 was used as a blend factor.

It also fixes a problem that prevented bitmaptools.readinto from working in the unix build, and uses mp_get_stream_raise which can prevent a problem if the stream doesn't support the needed operations (and potentially raise a better error)

It adds some manual "tests". These reproduced the bitmap blending bug but didn't seem to reproduce the dithering bleed bug (#5568). More investigation is needed there.

Closes: #5567

this allows `readinto` to succeed in the unix port, where the VFS
is not FAT
mp_obj_float_get gets the value of an object, which must be
exactly a float.  mp_obj_get_float gets the float value of
an object of various types, including floats & ints.
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Thank you!

@tannewt tannewt merged commit 387a8a4 into adafruit:main Nov 22, 2021
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.

bitmaptools.alphablend is wonky for some blend factors
2 participants