[SDL] Exposing clipping function

sondheim at knxmail.com sondheim at knxmail.com
Thu Apr 27 09:17:18 PDT 2000


> Hello ! :)

> I noticed that my program crashes with an X-error if I blit to outside
> the screen. Would be what I expect, had I not turned on clipping.
> If I do a:
> SDL_SetClipping(mysprite, 10, 10, 629, 469) on a screen of 640x480
> then my sprite is not seen in the 10-pixel border, but the program
> aborts when it moves outside the screen.
> Or just blit it at 1000,0 or something. Should the clipping not
> take care of that ?
> I have SDL1.1.1 (the 1.1.2-announcement doesn't mention this though),
> on XFree3.3.x.

Can you send a simple test case which I can use to reproduce this?

Thanks!
	-Sam Lantinga, Lead Programmer, Loki Entertainment Software



More information about the SDL mailing list