src/render/software/SDL_render_sw.c
changeset 5296 48067bfc300c
parent 5288 d4381f3b0d1e
child 5297 1800dc39b74c
     1.1 --- a/src/render/software/SDL_render_sw.c	Mon Feb 14 00:45:16 2011 -0800
     1.2 +++ b/src/render/software/SDL_render_sw.c	Mon Feb 14 11:50:18 2011 -0600
     1.3 @@ -364,7 +364,12 @@
     1.4      if (!surface) {
     1.5          return -1;
     1.6      }
     1.7 -    return SDL_BlitSurface(src, srcrect, surface, &final_rect);
     1.8 +
     1.9 +    if ( srcrect->w == final_rect.w && srcrect->h == final_rect.h ) {
    1.10 +        return SDL_BlitSurface(src, srcrect, surface, &final_rect);
    1.11 +    } else {
    1.12 +        return SDL_BlitScaled(src, srcrect, surface, &final_rect);
    1.13 +    }
    1.14  }
    1.15  
    1.16  static int