Sortix
Sortix Download Manual Development Source Code News Blog More
current nightly

Sortix volatile manual

This manual documents Sortix volatile, a development build that has not been officially released. You can instead view this document in the latest official manual.

SDL_UpdateRect(3) SDL API Reference SDL_UpdateRect(3)

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
Tue 11 Sep 2001, 23:01 SDL
Copyright 2011-2025 Jonas 'Sortie' Termansen and contributors.
Sortix's source code is free software under the ISC license.
#sortix on irc.sortix.org
@sortix_org