16 colour BMPs in Linux (svgalib and X)

Is it possible that the Linux version of SDL doesn’t support 16 colour BMPs?
I have a program running in Win32, MacOS BeOS and Linux with the same
Bitmaps, and they work everywhere, except in Linux. They look as if they had
a wrong pitch or something.
Is this a known “problem”, or have I just built a stupid bug?

Is it possible that the Linux version of SDL doesn’t support 16 colour BMPs?
I have a program running in Win32, MacOS BeOS and Linux with the same
Bitmaps, and they work everywhere, except in Linux. They look as if they had
a wrong pitch or something.
Is this a known “problem”, or have I just built a stupid bug?

It should work. Can you post a link to the BMPs which expose the bug?

Thanks!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Is it possible that the Linux version of SDL doesn’t support 16 colour BMPs?
I have a program running in Win32, MacOS BeOS and Linux with the same
Bitmaps, and they work everywhere, except in Linux. They look as if they had
a wrong pitch or something.
Is this a known “problem”, or have I just built a stupid bug?

I’ve had a look at the actual code that loads BMP files under Linux, and
apparently it won’t work loading BMP’s with less than 8-bit color depth.
It would seem that Windows and other platforms have native calls for
loading BMP files, and these get used instead of the specialized code
provided. The last I looked at this code was SDL 0.11.2 (long, long ago!)
and it would appear that the code hasn’t changed since.On Mon, 5 Feb 2001, Pius II. wrote:


Rafael R. Sevilla <@Rafael_R_Sevilla> +63 (2) 4342217
ICSM-F Development Team, UP Diliman +63 (917) 4458925
OpenPGP Key ID: 0x0E8CE481

I have the BMP attached; it’s only 274 bytes :slight_smile:
It’s not really a problem, I have already converted all my graphics to 256
colours.
By the way, two-colour bitmaps worked perfectly well. (even really sick
formats like 2 colour with palette)
-------------- next part --------------
A non-text attachment was scrubbed…
Name: flieger.bmp.gz
Type: application/x-gzip
Size: 274 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20010206/c8a150b7/attachment.bin

I have the BMP attached; it’s only 274 bytes :slight_smile:

Cute! :slight_smile:

It’s not really a problem, I have already converted all my graphics to 256
colours.

(I’d use 24 bit and a nice nondestructively compressing format such as PNG,
and then dither or otherwise convert down to the selected display forrmat…
but then I’m also the kind of guy who wants to write 2D scrolling games using
OpenGL, with 640x480+ resolution, sub pixel accurate positioning, blending,
antialiazing and so on… :slight_smile:

By the way, two-colour bitmaps worked perfectly well. (even really sick
formats like 2 colour with palette)

What’s wrong with 2 colors + palette? :wink: (Don’t you want an entry for the
foreground at the very least - unless you have a special API extension to set
that “from the outside”?)

//David

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------> http://www.linuxaudiodev.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |--------------------------------------> david at linuxdj.com -'On Tuesday 06 February 2001 17:33, Pius II. wrote:

I have the BMP attached; it’s only 274 bytes :slight_smile:

I just tried loading and displaying this image with the showimage program
in the SDL_image library. SDL_image uses the SDL BMP loading function to
load BMP images.

It worked fine with SDL 1.1.7. What version of SDL are you having problems
with?

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

I have the BMP attached; it’s only 274 bytes :slight_smile:

I just tried loading and displaying this image with the showimage program
in the SDL_image library. SDL_image uses the SDL BMP loading function to
load BMP images.

It worked fine with SDL 1.1.7. What version of SDL are you having
problems
with?

I think I used SDL 1.1.5 (from SuSE 7); never mind, I switched to using TGAs
by now, so I don’t have any problems anymore. Thanks for the information
anyways!