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 2578

Summary: No transparency in XPM files
Product: SDL_image Reporter: beuc
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.0   
Hardware: x86_64   
OS: Linux   
Attachments: XPM file with transparency.

Description beuc 2014-06-08 21:32:27 UTC
Created attachment 1676 [details]
XPM file with transparency.

Hi,

SDL_image 1.2.12 loads the attached XPM file with transparency.

SDL_image 2.0.0 now uses a white background instead.

One can easily test with the "showimage.c" example.

CHANGES.txt mentions
Sylvain - Thu Nov 22 13:09:59 PST 2012
 * Added extended XPM color table (disabled by default in IMG_xpm.c)
so this might be related.
Comment 1 Sam Lantinga 2014-06-16 00:34:42 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL_image/rev/c0132bb6251a