SDL_BlitSurface bug

Hello,

I found that SDL_BlitSurface sometimes does weird things and less often even
segfaults, when blitting from RLE compressed surfaces. This only happens, when
src.x or src.y is not zero.

//this segfaults sometimes when clipping RLE-compressed surfaces…
//at least using SDL 0.9.9 and 0.9.11
SDL_BlitSurface(surf, &src, buffer, &dest);

I?m using SDL under XWindows and MITSHM. Buffer is the screen buffer.

some ideas ? workarounds ?–
Karsten-O. Laux
klaux at student.uni-kl.de
http://www.rhrk.uni-kl.de/~klaux
UIN 21614933 (Bert)

I found that SDL_BlitSurface sometimes does weird things and less often even
segfaults, when blitting from RLE compressed surfaces. This only happens, when
src.x or src.y is not zero.

some ideas ?

It definitely sounds like a bug. Can you send me directly a small test
program that reproduces the problem?

Thanks!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/