src/video/SDL_stretch.c
changeset 6389 43a190ad60a7
parent 6138 4c64952a58fb
child 6430 48d519500f7e
equal deleted inserted replaced
6388:470bc1333b09 6389:43a190ad60a7
   207                 SDL_Surface * dst, const SDL_Rect * dstrect)
   207                 SDL_Surface * dst, const SDL_Rect * dstrect)
   208 {
   208 {
   209     int src_locked;
   209     int src_locked;
   210     int dst_locked;
   210     int dst_locked;
   211     int pos, inc;
   211     int pos, inc;
   212     int dst_width;
       
   213     int dst_maxrow;
   212     int dst_maxrow;
   214     int src_row, dst_row;
   213     int src_row, dst_row;
   215     Uint8 *srcp = NULL;
   214     Uint8 *srcp = NULL;
   216     Uint8 *dstp;
   215     Uint8 *dstp;
   217     SDL_Rect full_src;
   216     SDL_Rect full_src;
   284     /* Set up the data... */
   283     /* Set up the data... */
   285     pos = 0x10000;
   284     pos = 0x10000;
   286     inc = (srcrect->h << 16) / dstrect->h;
   285     inc = (srcrect->h << 16) / dstrect->h;
   287     src_row = srcrect->y;
   286     src_row = srcrect->y;
   288     dst_row = dstrect->y;
   287     dst_row = dstrect->y;
   289     dst_width = dstrect->w * bpp;
       
   290 
   288 
   291 #ifdef USE_ASM_STRETCH
   289 #ifdef USE_ASM_STRETCH
   292     /* Write the opcodes for this stretch */
   290     /* Write the opcodes for this stretch */
   293     if ((bpp == 3) || (generate_rowbytes(srcrect->w, dstrect->w, bpp) < 0)) {
   291     if ((bpp == 3) || (generate_rowbytes(srcrect->w, dstrect->w, bpp) < 0)) {
   294         use_asm = SDL_FALSE;
   292         use_asm = SDL_FALSE;