Question about SDL_Surface

Sometimes,I need tow SDL_Surfaces on the screen to work,
but I don’t know how.Is there any way to place tow sdl surface windows on the same screen on X?

a ?crit dans le message news:
mailman.1003210264.6492.sdl at libsdl.org

Sometimes,I need tow SDL_Surfaces on the screen to work,
but I don’t know how.Is there any way to place tow sdl surface windows on
the same screen on X?

Don’t forget to use :

int SDL_BlitSurface(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst,
SDL_Rect *dstrect);
void SDL_UpdateRect(SDL_Surface *screen, Sint32 x, Sint32 y, Sint32 w,
Sint32 h);-----------------------------------------
FROM SDL DOCs:
int SDL_BlitSurface(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst,
SDL_Rect *dstrect);

Description
This performs a fast blit from the source surface to the destination
surface.

Only the position is used in the dstrect (the width and height are ignored).

If either srcrect or dstrect are NULL, the entire surface (src or dst) is
copied.

The final blit rectangle is saved in dstrect after all clipping is performed
(srcrect is not modified).

  ------------------------------------------

void SDL_UpdateRect(SDL_Surface *screen, Sint32 x, Sint32 y, Sint32 w,
Sint32 h);

Description
Makes sure the given area is updated on the given screen. The rectangle must
be confined within the screen boundaries (no clipping is done).

If ‘x’, ‘y’, ‘w’ and ‘h’ are all 0, SDL_UpdateRect will update the entire
screen.

  -------------------------------------------

See test directory in the SDL source package…

Jocelyn.