---
name: "SDL_DisplayYUVOverlay"
section: "3"
platform: "linux"
package: "libsdl1.2-dev"
version: "1.2.15+dfsg2-8"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_DisplayYUVOverlay"
---

# SDL\_DisplayYUVOverlay(3)

Blit the overlay to the display

## NAME

SDL\_DisplayYUVOverlay - Blit the overlay to the display

## SYNOPSIS

**#include "SDL.h"**

**int SDL\_DisplayYUVOverlay**(**SDL\_Overlay \*overlay, SDL\_Rect \*dstrect**);

## DESCRIPTION

Blit the **overlay** to the surface specified when it was *created*. The **SDL\_Rect** structure, **dstrect**, specifies the position and size of the destination. If the **dstrect** is a larger or smaller than the overlay then the overlay will be scaled, this is optimized for 2x scaling.

## RETURN VALUES

Returns 0 on success

## SEE ALSO

**SDL\_Overlay**, **SDL\_CreateYUVOverlay**
