src/render/SDL_render.c
changeset 7409 8b5ae6ff6a49
parent 7339 2d2fd56db9b7
child 7419 a22566f42281
equal deleted inserted replaced
7408:c50e165abfdf 7409:8b5ae6ff6a49
   762     SDL_Renderer *renderer;
   762     SDL_Renderer *renderer;
   763     SDL_Rect full_rect;
   763     SDL_Rect full_rect;
   764 
   764 
   765     CHECK_TEXTURE_MAGIC(texture, -1);
   765     CHECK_TEXTURE_MAGIC(texture, -1);
   766 
   766 
       
   767     if (!pixels) {
       
   768         return SDL_InvalidParamError("pixels");
       
   769     }
       
   770     if (!pitch) {
       
   771         return SDL_InvalidParamError("pitch");
       
   772     }
       
   773 
   767     if (!rect) {
   774     if (!rect) {
   768         full_rect.x = 0;
   775         full_rect.x = 0;
   769         full_rect.y = 0;
   776         full_rect.y = 0;
   770         full_rect.w = texture->w;
   777         full_rect.w = texture->w;
   771         full_rect.h = texture->h;
   778         full_rect.h = texture->h;