---
name: "SDL_StretchSurfaceBlit"
section: "3"
platform: "linux"
package: "libsdl-stretch-dev"
version: "0.3.1-12"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_StretchSurfaceBlit"
---

# SDL\_StretchSurfaceBlit(3)

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

## NAME

SDL\_StretchSurfaceBlit - Perform a stretch blit between two surfaces of the same format.

## SYNOPSIS

```
 #include <SDL_stretch.h>
```

**extern DECLSPEC int SDL\_StretchSurfaceBlit(SDL\_Surface \*src, SDL\_Rect \*srcrect, SDL\_Surface \*dst, SDL\_Rect \*dstrect);**

## DESCRIPTION

NOTE: **The SDL\_StretchSurfaceBlit function** is not safe to call from multiple threads!

**The SDL\_StretchSurfaceBlit 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.

Remember that this is the inverse meaning, the main SDL lib will ignore the srcrect and only watch for the dstrect if any.
