Lines Matching refs:srcrect
203 SDL_SoftStretch(SDL_Surface * src, const SDL_Rect * srcrect, in SDL_SoftStretch() argument
228 if (srcrect) { in SDL_SoftStretch()
229 if ((srcrect->x < 0) || (srcrect->y < 0) || in SDL_SoftStretch()
230 ((srcrect->x + srcrect->w) > src->w) || in SDL_SoftStretch()
231 ((srcrect->y + srcrect->h) > src->h)) { in SDL_SoftStretch()
239 srcrect = &full_src; in SDL_SoftStretch()
277 inc = (srcrect->h << 16) / dstrect->h; in SDL_SoftStretch()
278 src_row = srcrect->y; in SDL_SoftStretch()
283 if ((bpp == 3) || (generate_rowbytes(srcrect->w, dstrect->w, bpp) < 0)) { in SDL_SoftStretch()
294 + (srcrect->x * bpp); in SDL_SoftStretch()
326 copy_row1(srcp, srcrect->w, dstp, dstrect->w); in SDL_SoftStretch()
329 copy_row2((Uint16 *) srcp, srcrect->w, in SDL_SoftStretch()
333 copy_row3(srcp, srcrect->w, dstp, dstrect->w); in SDL_SoftStretch()
336 copy_row4((Uint32 *) srcp, srcrect->w, in SDL_SoftStretch()