src/render/software/SDL_rotate.c
changeset 7859 af63b63e7aac
parent 7828 1451063c8ecd
child 8093 b43765095a6f
     1.1 --- a/src/render/software/SDL_rotate.c	Sun Oct 20 20:49:36 2013 -0700
     1.2 +++ b/src/render/software/SDL_rotate.c	Sun Oct 20 21:34:38 2013 -0700
     1.3 @@ -84,7 +84,8 @@
     1.4  /* !
     1.5  \brief Returns colorkey info for a surface
     1.6  */
     1.7 -Uint32 _colorkey(SDL_Surface *src)
     1.8 +static Uint32
     1.9 +_colorkey(SDL_Surface *src)
    1.10  {
    1.11      Uint32 key = 0;
    1.12      SDL_GetColorKey(src, &key);
    1.13 @@ -104,9 +105,10 @@
    1.14  \param sangle The cosine of the angle
    1.15  
    1.16  */
    1.17 -void _rotozoomSurfaceSizeTrig(int width, int height, double angle,
    1.18 -                              int *dstwidth, int *dstheight,
    1.19 -                              double *cangle, double *sangle)
    1.20 +void
    1.21 +SDLgfx_rotozoomSurfaceSizeTrig(int width, int height, double angle,
    1.22 +                               int *dstwidth, int *dstheight,
    1.23 +                               double *cangle, double *sangle)
    1.24  {
    1.25      double x, y, cx, cy, sx, sy;
    1.26      double radangle;
    1.27 @@ -153,7 +155,8 @@
    1.28  \param flipy Flag indicating vertical mirroring should be applied.
    1.29  \param smooth Flag indicating anti-aliasing should be used.
    1.30  */
    1.31 -void _transformSurfaceRGBA(SDL_Surface * src, SDL_Surface * dst, int cx, int cy, int isin, int icos, int flipx, int flipy, int smooth)
    1.32 +static void
    1.33 +_transformSurfaceRGBA(SDL_Surface * src, SDL_Surface * dst, int cx, int cy, int isin, int icos, int flipx, int flipy, int smooth)
    1.34  {
    1.35      int x, y, t1, t2, dx, dy, xd, yd, sdx, sdy, ax, ay, ex, ey, sw, sh;
    1.36      tColorRGBA c00, c01, c10, c11, cswap;
    1.37 @@ -270,7 +273,8 @@
    1.38  \param flipx Flag indicating horizontal mirroring should be applied.
    1.39  \param flipy Flag indicating vertical mirroring should be applied.
    1.40  */
    1.41 -void transformSurfaceY(SDL_Surface * src, SDL_Surface * dst, int cx, int cy, int isin, int icos, int flipx, int flipy)
    1.42 +static void
    1.43 +transformSurfaceY(SDL_Surface * src, SDL_Surface * dst, int cx, int cy, int isin, int icos, int flipx, int flipy)
    1.44  {
    1.45      int x, y, dx, dy, xd, yd, sdx, sdy, ax, ay;
    1.46      tColorY *pc, *sp;
    1.47 @@ -315,8 +319,6 @@
    1.48  }
    1.49  
    1.50  
    1.51 -
    1.52 -
    1.53  /* !
    1.54  \brief Rotates and zooms a surface with different horizontal and vertival scaling factors and optional anti-aliasing.
    1.55  
    1.56 @@ -340,7 +342,8 @@
    1.57  
    1.58  */
    1.59  
    1.60 -SDL_Surface *_rotateSurface(SDL_Surface * src, double angle, int centerx, int centery, int smooth, int flipx, int flipy, int dstwidth, int dstheight, double cangle, double sangle)
    1.61 +SDL_Surface *
    1.62 +SDLgfx_rotateSurface(SDL_Surface * src, double angle, int centerx, int centery, int smooth, int flipx, int flipy, int dstwidth, int dstheight, double cangle, double sangle)
    1.63  {
    1.64      SDL_Surface *rz_src;
    1.65      SDL_Surface *rz_dst;
    1.66 @@ -496,4 +499,3 @@
    1.67      */
    1.68      return (rz_dst);
    1.69  }
    1.70 -