src/render/software/SDL_render_sw.c
changeset 5296 48067bfc300c
parent 5288 d4381f3b0d1e
child 5297 1800dc39b74c
--- a/src/render/software/SDL_render_sw.c	Mon Feb 14 00:45:16 2011 -0800
+++ b/src/render/software/SDL_render_sw.c	Mon Feb 14 11:50:18 2011 -0600
@@ -364,7 +364,12 @@
     if (!surface) {
         return -1;
     }
-    return SDL_BlitSurface(src, srcrect, surface, &final_rect);
+
+    if ( srcrect->w == final_rect.w && srcrect->h == final_rect.h ) {
+        return SDL_BlitSurface(src, srcrect, surface, &final_rect);
+    } else {
+        return SDL_BlitScaled(src, srcrect, surface, &final_rect);
+    }
 }
 
 static int