---
name: "SDL_UpdateRect"
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_UpdateRect"
---

# SDL\_UpdateRect(3)

Makes sure the given area is updated on the given screen.

## NAME

SDL\_UpdateRect - Makes sure the given area is updated on the given screen.

## SYNOPSIS

**#include "SDL.h"**

**void SDL\_UpdateRect**(**SDL\_Surface \*screen, Sint32 x, Sint32 y, Sint32 w, Sint32 h**);

## DESCRIPTION

Makes sure the given area is updated on the given screen. The rectangle must be confined within the screen boundaries (no clipping is done).

If '**x**', '**y**', '**w**' and '**h**' are all 0, **SDL\_UpdateRect** will update the entire screen.

This function should not be called while '**screen**' is *locked*.

## SEE ALSO

**SDL\_UpdateRects**, **SDL\_Rect**, **SDL\_Surface**, **SDL\_LockSurface**
