src/render/SDL_render.c
changeset 9762 5c4a85c5b648
parent 9673 aea5a2032785
child 9849 1305bfa0214e
child 11075 6a683bf1446c
equal deleted inserted replaced
9761:fd7fe355f173 9762:5c4a85c5b648
  1732     SDL_Rect real_dstrect = { 0, 0, 0, 0 };
  1732     SDL_Rect real_dstrect = { 0, 0, 0, 0 };
  1733     SDL_Point real_center;
  1733     SDL_Point real_center;
  1734     SDL_FRect frect;
  1734     SDL_FRect frect;
  1735     SDL_FPoint fcenter;
  1735     SDL_FPoint fcenter;
  1736 
  1736 
       
  1737     if (flip == SDL_FLIP_NONE && angle == 0) { /* fast path when we don't need rotation or flipping */
       
  1738         return SDL_RenderCopy(renderer, texture, srcrect, dstrect);
       
  1739     }
       
  1740 
  1737     CHECK_RENDERER_MAGIC(renderer, -1);
  1741     CHECK_RENDERER_MAGIC(renderer, -1);
  1738     CHECK_TEXTURE_MAGIC(texture, -1);
  1742     CHECK_TEXTURE_MAGIC(texture, -1);
  1739 
  1743 
  1740     if (renderer != texture->renderer) {
  1744     if (renderer != texture->renderer) {
  1741         return SDL_SetError("Texture was not created with this renderer");
  1745         return SDL_SetError("Texture was not created with this renderer");