Lines Matching refs:srcrect
202 int SDL_SoftStretch(SDL_Surface *src, 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()
240 srcrect = &full_src; in SDL_SoftStretch()
281 inc = (srcrect->h << 16) / dstrect->h; in SDL_SoftStretch()
282 src_row = srcrect->y; in SDL_SoftStretch()
288 (generate_rowbytes(srcrect->w, dstrect->w, bpp) < 0) ) { in SDL_SoftStretch()
299 + (srcrect->x*bpp); in SDL_SoftStretch()
332 copy_row1(srcp, srcrect->w, dstp, dstrect->w); in SDL_SoftStretch()
335 copy_row2((Uint16 *)srcp, srcrect->w, in SDL_SoftStretch()
339 copy_row3(srcp, srcrect->w, dstp, dstrect->w); in SDL_SoftStretch()
342 copy_row4((Uint32 *)srcp, srcrect->w, in SDL_SoftStretch()