src/render/SDL_render.c
changeset 9762 5c4a85c5b648
parent 9673 aea5a2032785
child 9849 1305bfa0214e
child 11075 6a683bf1446c
     1.1 --- a/src/render/SDL_render.c	Fri Jun 19 23:12:13 2015 -0700
     1.2 +++ b/src/render/SDL_render.c	Fri Jun 19 23:20:43 2015 -0700
     1.3 @@ -1734,6 +1734,10 @@
     1.4      SDL_FRect frect;
     1.5      SDL_FPoint fcenter;
     1.6  
     1.7 +    if (flip == SDL_FLIP_NONE && angle == 0) { /* fast path when we don't need rotation or flipping */
     1.8 +        return SDL_RenderCopy(renderer, texture, srcrect, dstrect);
     1.9 +    }
    1.10 +
    1.11      CHECK_RENDERER_MAGIC(renderer, -1);
    1.12      CHECK_TEXTURE_MAGIC(texture, -1);
    1.13