| Summary: | SDL_LoadBMP loads 32-bit images incorrectly | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Rubinson Ivan <soryy708> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED DUPLICATE | QA Contact: | Sam Lantinga <slouken> |
| Severity: | minor | ||
| Priority: | P2 | CC: | philipp.wiesemann |
| Version: | 2.0.3 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 8 | ||
| Attachments: | 32-bit A8R8G8B8 image which is loaded incorrectly | ||
Thank you for reporting this problem. I think it was already fixed for SDL 2.0.4 (maybe with bug #2714). The provided image has a black number and a transparent background for me (in SDL). (In reply to Philipp Wiesemann from comment #1) > Thank you for reporting this problem. > > I think it was already fixed for SDL 2.0.4 (maybe with bug #2714). The > provided image has a black number and a transparent background for me (in > SDL). I'll clone the mercurial, build, and see if I can still reproduce. Will update. Thanks! (In reply to Rubinson Ivan from comment #2) > (In reply to Philipp Wiesemann from comment #1) > > Thank you for reporting this problem. > > > > I think it was already fixed for SDL 2.0.4 (maybe with bug #2714). The > > provided image has a black number and a transparent background for me (in > > SDL). > > I'll clone the mercurial, build, and see if I can still reproduce. > Will update. Thanks! Done that. Bug was indeed fixed. Many thanks! When can we expect 2.0.4 to be stable? |
Created attachment 2287 [details] 32-bit A8R8G8B8 image which is loaded incorrectly 32-bit A8R8G8B8 image (attached) should be an opaque black '1' with a transparent background through alpha channel, but instead SDL loads it as an opaque blue '1' with an opaque black background. Note: I do a SDL_LoadBMP() onto a surface, and then a SDL_CreateTextureFromSurface, and finally an SDL_RenderCopy.