src/video/SDL_surface.c
changeset 4966 a130bc2f0a18
parent 4949 68da5a234bba
child 5138 da10636e5eca
equal deleted inserted replaced
4965:91d0085b7560 4966:a130bc2f0a18
   593     full_rect.h = surface->h;
   593     full_rect.h = surface->h;
   594 
   594 
   595     /* Set the clipping rectangle */
   595     /* Set the clipping rectangle */
   596     if (!rect) {
   596     if (!rect) {
   597         surface->clip_rect = full_rect;
   597         surface->clip_rect = full_rect;
   598         return 1;
   598         return SDL_TRUE;
   599     }
   599     }
   600     return SDL_IntersectRect(rect, &full_rect, &surface->clip_rect);
   600     return SDL_IntersectRect(rect, &full_rect, &surface->clip_rect);
   601 }
   601 }
   602 
   602 
   603 void
   603 void