SDL_BlitSurface with src==dst

Hi,

Is it save to use SDL_BlitSurface (SDL 1.2) with equal source and
destination surfaces? “Save” means that if the source and destination
rectangle overlapp then that part of the source that would be overwritten
is copied first, so I don’t get garbage on the screen. I tested it on
Win2k and it seems to work fine, but can I be sure that it works with
other versions/platforms as well?

thanks,
eph

Hi,

Is it save to use SDL_BlitSurface (SDL 1.2) with equal source and
destination surfaces? “Save” means that if the source and destination
rectangle overlapp then that part of the source that would be overwritten
is copied first, so I don’t get garbage on the screen. I tested it on
Win2k and it seems to work fine, but can I be sure that it works with
other versions/platforms as well?

It should work fine. If it doesn’t, it’s a bug.

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment