Name

sdl_updaterect — Makes sure the given area is updated on the given screen.

Synopsis

void sdl_updaterect($surf,  
 $x,  
 $y,  
 $width,  
 $height); 
array  $surf;
long  $x;
long  $y;
long  $width;
long  $height;

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.

This function should not be called while ’screen’ is locked. See the section called “Resources” for $surf param.