24 Bit Blitting Code broken?

Hello !

In my game i am using these routines to load a big BMP
and then blitting parts of it to smaller 8x8 Tiles.
This is part of my map engine, i am coding on a standard
2D game using tiles.

The problem is that when i use this :

    (*TEMP_Tiles) -> Tiles [index_tile] =
	SDL_CreateRGBSurface (	SDL_SWSURFACE,
				(*TEMP_Tiles) -> Tile_Size_X,
				(*TEMP_Tiles) -> Tile_Size_Y,
				24,
				r_mask,
				g_mask,
				b_mask,
				a_mask			);

It does not work, i don ?t see anything
on the screen, but when it use this :

    (*TEMP_Tiles) -> Tiles [index_tile] =
	SDL_CreateRGBSurface (	SDL_SWSURFACE,
				(*TEMP_Tiles) -> Tile_Size_X,
				(*TEMP_Tiles) -> Tile_Size_Y,
				32,
				r_mask,
				g_mask,
				b_mask,
				a_mask			);

It works without problems.

I searched in my code for a mistake by me, but now i think
there are problems with blitting into 24 Bit Surfaces.
I tested the same on Linux and got the same results.

CU
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed…
Name: tiles.h
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040428/aeac9633/attachment.txt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed…
Name: tiles.cpp
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040428/aeac9633/attachment.asc