Bug with loading bitmap or blitting

Hi,

In my Linux game, the images are kept in separate small BMP files, loaded at
startup, and blitted repeatedly on screen. 26 of these BMPs are the
alphabet.
There is a problem with SOME of the images, that are displayed as trash. I
am pretty sure it depends on the BMP size, but of course I can’t be sure
wheter the loading or the blitting is wrong. Could it be a problem in
calculating pitch ?
Here are some tests I did with BMP files, depth 8:

9x20: does not work
12x20: works
15x20: works
18x20: does not work
36x20: works

My system is RedHat 6.1 on Intel, the problem appears both with SDL 1.0.4
and SDL 1.0.7.
The BMPs were generated on Windows version of PaintShopPro, I can send them
if required.
I also tested with the SDL test program, that loads a bitmap and shows in
the middle of the screen.
Setting transparency changes nothing.

Best Regards
Amedeo Storni

Amedeo Storni

My system is RedHat 6.1 on Intel, the problem appears both with SDL 1.0.4
and SDL 1.0.7.

As in my other message: is SDL 1.0.6, not 1.0.7 (that does not exist)

Amedeo Storni