[SDL] Re: Problem with SDL_CreateRGBSurface !
sdl-news at lokigames.com
sdl-news at lokigames.com
Fri Oct 20 09:30:38 PDT 2000
"Anes Lihovac" <al at axxteq.de>
> I want to Blit a image to the screen. It is 320x200x8 big.
> This image is readed out from a file which is 64800 Bytes
> big. The 32 first bytes were skipped. Then comes a
> 3*256 Bytes big Palette and then the image data.
>
> <code, code, code>
>
> This gives me a black window.
>
> What am i doing wrong ???
did you set the display mode to 8bpp? if so i believe you'll
need to set the palette for the screen surface also.
More information about the SDL
mailing list