---
name: "SDL_LockYUVOverlay"
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_LockYUVOverlay"
---

# SDL\_LockYUVOverlay(3)

Lock an overlay

## NAME

SDL\_LockYUVOverlay - Lock an overlay

## SYNOPSIS

**#include "SDL.h"**

**int SDL\_LockYUVOverlay**(**SDL\_Overlay \*overlay**);

## DESCRIPTION

Much the same as **SDL\_LockSurface**, **SDL\_LockYUVOverlay** locks the **overlay** for direct access to pixel data.

## RETURN VALUE

Returns **0** on success, or **-1** on an error.

## SEE ALSO

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