We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3156

Summary: SDL_LoadBMP loads 32-bit images incorrectly
Product: SDL Reporter: Rubinson Ivan <soryy708>
Component: videoAssignee: 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

Description Rubinson Ivan 2015-10-17 12:05:03 UTC
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.
Comment 1 Philipp Wiesemann 2015-10-18 15:38:28 UTC
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).
Comment 2 Rubinson Ivan 2015-10-19 12:56:55 UTC
(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!
Comment 3 Rubinson Ivan 2015-10-19 13:32:50 UTC
(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?
Comment 4 Rubinson Ivan 2015-10-19 13:34:43 UTC
I built the mercurial and it was fixed.
Seems like it's duplicate of bug #2714

*** This bug has been marked as a duplicate of bug 2714 ***