Hi all,
I am just trying to get the next piece of code running in SDl-1.1.4 and
Windows 98
char *CompleteFileName=new char[256];
sprintf(CompleteFileName,"%s_%i.bmp",FileName,i);
SDL_Surface *tmp=SDL_LoadBMP(CompleteFileName);
if(tmp==NULL)
{
/* File can't be open */
Log::Error("Can't open file: %s",CompleteFileName);
}
(Image[Anim])[i]=SDL_DisplayFormat(tmp);
SDL_FreeSurface(tmp);
delete CompleteFileName;
No matter what I do, the code hangs inside SDL_DisplayFormat(tmp)
I can’t be more exact on the point because instead of showing the SDL
code it show the asm code.
Anyway I am creating a window of 640x480x16.
If I change
(Image[Anim])[i]=SDL_DisplayFormat(tmp);
SDL_FreeSurface(tmp);
for this line
(Image[Anim])[i]=tmp;
then all runs OK.
I attach one of the BMP I am using just in case it is the problem. Only
3K.
Do you know what is happening?
How can I get a look inside the SDL source with VisualC++ 5.0?
Regards,–
Miguel Angel Blanch Lardin
-- http://www.arianne.cx -- Arianne --
The free open source massively multiplayer online role playing game
nuclear cia fbi spy password code encrypt president bomb iran irak korea
cuba
Echelon must die
-------------- next part --------------
A non-text attachment was scrubbed…
Name: Dog_0_0.bmp
Type: image/bmp
Size: 3126 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20000820/44bde929/attachment.bin