Lines Matching refs:dstrect
204 SDL_Surface * dst, const SDL_Rect * dstrect) in SDL_SoftStretch() argument
241 if (dstrect) { in SDL_SoftStretch()
242 if ((dstrect->x < 0) || (dstrect->y < 0) || in SDL_SoftStretch()
243 ((dstrect->x + dstrect->w) > dst->w) || in SDL_SoftStretch()
244 ((dstrect->y + dstrect->h) > dst->h)) { in SDL_SoftStretch()
252 dstrect = &full_dst; in SDL_SoftStretch()
277 inc = (srcrect->h << 16) / dstrect->h; in SDL_SoftStretch()
279 dst_row = dstrect->y; in SDL_SoftStretch()
283 if ((bpp == 3) || (generate_rowbytes(srcrect->w, dstrect->w, bpp) < 0)) { in SDL_SoftStretch()
289 for (dst_maxrow = dst_row + dstrect->h; dst_row < dst_maxrow; ++dst_row) { in SDL_SoftStretch()
291 + (dstrect->x * bpp); in SDL_SoftStretch()
326 copy_row1(srcp, srcrect->w, dstp, dstrect->w); in SDL_SoftStretch()
330 (Uint16 *) dstp, dstrect->w); in SDL_SoftStretch()
333 copy_row3(srcp, srcrect->w, dstp, dstrect->w); in SDL_SoftStretch()
337 (Uint32 *) dstp, dstrect->w); in SDL_SoftStretch()