src/video/SDL_surface.c
changeset 6920 a966229b4107
parent 6885 700f1b25f77f
child 7023 1d49dc7b5ce9
equal deleted inserted replaced
6919:c9c75d062fa8 6920:a966229b4107
   932     SDL_Surface src_surface, dst_surface;
   932     SDL_Surface src_surface, dst_surface;
   933     SDL_PixelFormat src_fmt, dst_fmt;
   933     SDL_PixelFormat src_fmt, dst_fmt;
   934     SDL_BlitMap src_blitmap, dst_blitmap;
   934     SDL_BlitMap src_blitmap, dst_blitmap;
   935     SDL_Rect rect;
   935     SDL_Rect rect;
   936     void *nonconst_src = (void *) src;
   936     void *nonconst_src = (void *) src;
       
   937 
       
   938     /* Check to make sure we are bliting somewhere, so we don't crash */
       
   939     if (!dst) {
       
   940         SDL_InvalidParamError("dst");
       
   941         return -1;
       
   942     }
       
   943     if (!dst_pitch) {
       
   944         SDL_InvalidParamError("dst_pitch");
       
   945         return -1;
       
   946     }
   937 
   947 
   938     /* Fast path for same format copy */
   948     /* Fast path for same format copy */
   939     if (src_format == dst_format) {
   949     if (src_format == dst_format) {
   940         int bpp;
   950         int bpp;
   941 
   951