#include "SDL.h"
void SDL_SetClipping
(SDL_Surface *surface, int top, int left, int bottom, int right);
Sets the clipping rectangle for the source surface in a blit. If the destination rectangle falls outside this rectangle, the source surface will be clipped so the blit doesn't write outside the clipping rectangle.
If the clip rectangle is { 0, 0, 0, 0 }, clipping will be disabled.
Note that blits are automatically clipped to the edges of the source and destination surfaces.