Clipping

What exactly does clipping do in SDL? When I blit slightly outside
the screen my object just vanishes. Is this normal? Do I have to implement
partial clipping myself?–
Don’t develop software you want, you’ll constantly hack it into
oblivion and when it’s finally stable you won’t want to use it.
Ever Again.

What exactly does clipping do in SDL? When I blit slightly outside
the screen my object just vanishes. Is this normal? Do I have to implement
partial clipping myself?

That shouldn’t happen, unless you are clipping the rectangles such that
they are different sizes. Check the output of SDL_GetError() after the
failed blit.

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Thanks, I checked my code. I assumed that SDL_Rect *Dest didn’t change
during a blit.–
Don’t develop software you want, you’ll constantly hack it into
oblivion and when it’s finally stable you won’t want to use it.
Ever Again.

On Tue, 23 Nov 1999, Sam Lantinga wrote:

What exactly does clipping do in SDL? When I blit slightly outside
the screen my object just vanishes. Is this normal? Do I have to implement
partial clipping myself?

That shouldn’t happen, unless you are clipping the rectangles such that
they are different sizes. Check the output of SDL_GetError() after the
failed blit.