| Extracted from Pike v7.8 release 866 at 2018-07-18.

[Top]
SDL

# Method SDL.update_rect()

Method update_rect

  `void update_rect(int x, int y, int w, int h, SDL.Surface|void screen)`

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.

Parameter `x`
Parameter `y`

  Top left corner of the rectangle to update.

Parameter `w`
Parameter `h`

  Width and height of the rectangle to update.

Parameter `screen`

  The screen object to flip. If missing, the default screen is used.

See also

  SDL.flip()