src/render/software/SDL_render_sw.c
changeset 10489 1e1ce9f6d215
parent 9998 f67cf37e9cd4
child 10612 6b2307dbec54
     1.1 --- a/src/render/software/SDL_render_sw.c	Fri Oct 07 17:58:02 2016 -0700
     1.2 +++ b/src/render/software/SDL_render_sw.c	Fri Oct 07 18:00:30 2016 -0700
     1.3 @@ -677,8 +677,8 @@
     1.4      }
     1.5  
     1.6      if (!retval) {
     1.7 -        SDLgfx_rotozoomSurfaceSizeTrig(tmp_rect.w, tmp_rect.h, -angle, &dstwidth, &dstheight, &cangle, &sangle);
     1.8 -        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.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;