src/render/software/SDL_render_sw.c
changeset 7859 af63b63e7aac
parent 7719 31b5f9ff36ca
child 8093 b43765095a6f
     1.1 --- a/src/render/software/SDL_render_sw.c	Sun Oct 20 20:49:36 2013 -0700
     1.2 +++ b/src/render/software/SDL_render_sw.c	Sun Oct 20 21:34:38 2013 -0700
     1.3 @@ -609,8 +609,8 @@
     1.4  
     1.5          retval = SDL_BlitScaled(src, srcrect, surface_scaled, &tmp_rect);
     1.6          if (!retval) {
     1.7 -            _rotozoomSurfaceSizeTrig(tmp_rect.w, tmp_rect.h, -angle, &dstwidth, &dstheight, &cangle, &sangle);
     1.8 -            surface_rotated = _rotateSurface(surface_scaled, -angle, dstwidth/2, dstheight/2, GetScaleQuality(), flip & SDL_FLIP_HORIZONTAL, flip & SDL_FLIP_VERTICAL, dstwidth, dstheight, cangle, sangle);
     1.9 +            SDLgfx_rotozoomSurfaceSizeTrig(tmp_rect.w, tmp_rect.h, -angle, &dstwidth, &dstheight, &cangle, &sangle);
    1.10 +            surface_rotated = SDLgfx_rotateSurface(surface_scaled, -angle, dstwidth/2, dstheight/2, GetScaleQuality(), flip & SDL_FLIP_HORIZONTAL, flip & SDL_FLIP_VERTICAL, dstwidth, dstheight, cangle, sangle);
    1.11              if(surface_rotated) {
    1.12                  /* Find out where the new origin is by rotating the four final_rect points around the center and then taking the extremes */
    1.13                  abscenterx = final_rect.x + (int)center->x;