Name

SDL_StretchSurfaceRect — Perform a stretch blit between two surfaces of the same format.

Synopsis

 #include <SDL_stretch.h>
extern int SDL_StretchSurfaceRect(,  
 ,  
 ,  
 ); 
 ;
 ;
 ;
 ;

Description

NOTE: The SDL_StretchSurfaceRect function is not safe to call from multiple threads!

The SDL_StretchSurfaceRect function will stretch a srcrect smoothly to the full area of the dst surface. If no srcrect is given then the full area of the src surface is stretched smoothly to the full dst surface. The dstrect is ignored always.

The SDL_StretchSurfaceRect function will also watch for a clip rectangle on the src surface. This may speed up handling in your programs by creating a larger src surface with an associated viewframe, and the srcrect argument needs not be recomputed.