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 3828

Summary: Can't load BMP file
Product: SDL Reporter: Sylvain <sylvain.becker>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: don't know   
Hardware: All   
OS: All   
Attachments: image failing to load
image ok

Description Sylvain 2017-09-14 08:16:08 UTC
Created attachment 2939 [details]
image failing to load

Can load this BMP file named "img_palette_2.bmp".
Whereas "img_palette.bmp" works.

img_palette_2.bmp: PC bitmap, Windows 98/2000 and newer format, 128 x 160 x 8
img_palette.bmp:   PC bitmap, Windows 95/NT4 and newer format, 128 x 160 x 8
Comment 1 Sylvain 2017-09-14 08:16:22 UTC
Created attachment 2940 [details]
image ok
Comment 2 Sylvain 2017-09-14 08:18:27 UTC
SDL_GetError() says "Compressed BMP files not supported".
The file was obtained by using "convert" tool.
Comment 3 Sam Lantinga 2017-09-14 14:57:38 UTC
Compressed BMP files are not supported by SDL. Use SDL_image if you want to load them.