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 - No transparency in XPM files
Summary: No transparency in XPM files
Status: RESOLVED FIXED
Alias: None
Product: SDL_image
Classification: Unclassified
Component: misc (show other bugs)
Version: 2.0.0
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-08 21:32 UTC by beuc
Modified: 2014-06-16 00:34 UTC (History)
0 users

See Also:


Attachments
XPM file with transparency. (1.29 KB, text/x-csrc)
2014-06-08 21:32 UTC, beuc
Details

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