SDL_!BlitSurface?
NAME SYNOPSIS DESCRIPTION RETURN VALUE SEE ALSO
SDL_!BlitSurface?- This performs a fast blit from the source surface to the destination surface.
#include
int SDL_!BlitSurface?(__SDL_Surface *src, SDL_Rect
This performs a fast blit from the source surface to the destination surface.
Only the position is used in the dstrect (the width and height are ignored).
If either srcrect or dstrect are NULL, the entire surface (src or dst) is copied.
The final blit rectangle is saved in dstrect after all clipping is performed (srcrect is not modified).
The blit function should not be called on a locked surface.
Note:
The results of blitting operations vary greatly depending on whether SDL_SRCAPLHA is set or not. See SDL_!SetAlpha?.
If the blit is successful, it returns 0, otherwise it returns -1.
If either of the surfaces were in video memory, and the blit returns -2, the video memory was lost, so it should
while ( SDL_!BlitSurface?(image, imgrect, screen, dstrect) == -2 ) {
while ( SDL_!LockSurface?(image)) This happens under DirectX 5.0 when the system switches away from your fullscreen application. Locking the surface will also fail until you have access to the video memory again.
SDL_!LockSurface?, SDL_!FillRect?, SDL_Surface, SDL_Rect
One page links to SDL_BlitSurface(3):