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 3026 - SDL_ConvertSurfaceFormat does not seem to respect color keys
Summary: SDL_ConvertSurfaceFormat does not seem to respect color keys
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.3
Hardware: x86_64 Windows 7
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-19 16:00 UTC by Adam M.
Modified: 2015-06-19 20:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam M. 2015-06-19 16:00:39 UTC
This may or may not be a duplicate of #2979.

When converting an 8-bit surface with a color key to a 32-bit surface with an alpha channel, the color key doesn't seem to be translated into transparent pixels. For instance, I have an 8-bit image with a magenta color key. When converting to a 32-bit RGBA image, I get a bunch of opaque magenta pixels.
Comment 1 Adam M. 2015-06-19 20:28:50 UTC
Other information:
* The conversion results in a 32-bit surface with no color key and blending enabled.
* With blending enabled, it looks alright.
* With blending disabled, I get the opaque magenta pixels.

I forgot that I had disabled blending as a workaround for bug #3023. So presumably it's creating magenta pixels with alpha = 0. This seems like correct enough behavior to me, so I'm closing this as INVALID.