chickadee » sdl-base » sdl-set-clip-rect!

sdl-set-clip-rect! sdl-surface sdl-rectprocedure

Sets the clipping rectangle (sdl-rect) for the surface (sdl-surface). When something is blitted on the surface, the area outside the blitting rectangle is ignored. If the clipping rectangle is larger than surface, it is cropped to surface size. If area is NULL (TODO: how to pass null rect in Scheme?), the clipping rectangle is set to the surface size.