Deceptive pixel format logic in _image_sdl2.pyx load_from_surface() #5269
Labels
Status: Has PR
There's a PR available for the issue
Status: Needs-analysis
Issue needs to be analyzed if it's real
Description
The intended happy path of converting to BGR888/ABGR8888 if
image.format.BytesPerPixel
is 3 or 4 is not reached. Instead, this is the default execution path. It seems like BPP=3 will not do any conversion, or incorrectly as ABGR if Rshift>Bshift.Code and Logs
https://github.com/kivy/kivy/blob/1.10.0/kivy/core/image/_img_sdl2.pyx#L63-L64
The text was updated successfully, but these errors were encountered: