src/video/SDL_surface.c
changeset 6041 69d7539ff51f
parent 5535 96594ac5fd1a
child 6138 4c64952a58fb
equal deleted inserted replaced
6040:08aa9c1dfed6 6041:69d7539ff51f
   950         while (height-- > 0) {
   950         while (height-- > 0) {
   951             SDL_memcpy(dst, src, width);
   951             SDL_memcpy(dst, src, width);
   952             src = (Uint8*)src + src_pitch;
   952             src = (Uint8*)src + src_pitch;
   953             dst = (Uint8*)dst + dst_pitch;
   953             dst = (Uint8*)dst + dst_pitch;
   954         }
   954         }
   955         return SDL_TRUE;
   955         return 0;
   956     }
   956     }
   957 
   957 
   958     if (!SDL_CreateSurfaceOnStack(width, height, src_format, (void*)src,
   958     if (!SDL_CreateSurfaceOnStack(width, height, src_format, (void*)src,
   959                                   src_pitch,
   959                                   src_pitch,
   960                                   &src_surface, &src_fmt, &src_blitmap)) {
   960                                   &src_surface, &src_fmt, &src_blitmap)) {