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 - SDL_LoadBMP loads 32-bit images incorrectly
Summary: SDL_LoadBMP loads 32-bit images incorrectly
Status: RESOLVED DUPLICATE of bug 2714
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.3
Hardware: x86_64 Windows 8
: P2 minor
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-17 12:05 UTC by Rubinson Ivan
Modified: 2015-10-19 13:34 UTC (History)
1 user (show)

See Also:


Attachments
32-bit A8R8G8B8 image which is loaded incorrectly (16.13 KB, image/bmp)
2015-10-17 12:05 UTC, Rubinson Ivan
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***