UpdateRects?

This function should update a list of SDL_Rects.
I’ve tried to use it but with no lucky; is there some errors
in my (horryble) code ?

SDL_Surface *screen,*figura;
SDL_Rect superfice[7];
int t=8;
.
.
.// inizializing sdl
.
screen=SDL_SetVideoMode(1024,768,16, HWSURFACE);
.
.
figura=IMG_Load(“ambarar.bmp”);
.
.
superfice[0].x=0;superfice[0].y=0;superfice[0].w=figura->w;
superfice[0].h=figura->h;
.
superfice[1].x=128;superfice[1].y=0;…


superfice[7].x=…
.
.
SDL_BlitSurface(figura,NULL,screen,superfice);
SDL_BlitSurface(figura,NULL,screen,&superfice[1]);



SDL_BlitSurface(figura,NULL,screen,&superfice[7]);
SDL_UpdateRects(screen,t,superfice);
SDL_Delay(5000);
.
.
.//freeing surfaces
.//quitting sdl

[snip]

I don ?t know if this is just a typo, but shouldn ?t that be
SDL_Rect superfice[8]; ?On Tuesday 28 August 2001 16:16, sragno at libero.it wrote:

This function should update a list of SDL_Rects.
I’ve tried to use it but with no lucky; is there some errors
in my (horryble) code ?

SDL_Surface *screen,*figura;
SDL_Rect superfice[7];
int t=8;

Johannes Schmidt

< http://libufo.sourceforge.net >
< http://m31.sourceforge.net >