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

Summary: SDL_ConvertSurfaceFormat does not seem to respect color keys
Product: SDL Reporter: Adam M. <adam>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.3   
Hardware: x86_64   
OS: Windows 7   

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.