SDL_UpdateRects() crash

Hi.

If SDL_Rect is outside screen, SDL_UpdateRects() crashes badly, but not
SDL_UpdateRect().

I guess it shouldn’t :slight_smile:

Fabien Penso wrote:

Hi.

If SDL_Rect is outside screen, SDL_UpdateRects() crashes badly, but not
SDL_UpdateRect().

I guess it shouldn’t :slight_smile:

It may, however. From the SDL documentation, SDL_UpdateRects:

–Snip
The rectangles must all be confined within the screen boundaries (no
clipping is done).
–Snap

Therefore the behaviour is undefinied if you violate the given advice.
SDL is right here. BTW the same thing stands at SDL_UpdateRect - that it
does NOT crash is pure luck, not ensured behaviour and therefore might
change with future versions of SDL.

Greetings
Joe

Mon, 05 Apr 2004 15:24:34 +0200, tu as dit :

[…]

It may, however. From the SDL documentation, SDL_UpdateRects:

–Snip
The rectangles must all be confined within the screen boundaries (no
clipping is done).
–Snap

Ok I skiped this part. I guess it could at least not crash :slight_smile: