src/render/software/SDL_rotate.c
changeset 7678 286c42d7c5ed
parent 7677 871d43c6968a
child 7828 1451063c8ecd
     1.1 --- a/src/render/software/SDL_rotate.c	Wed Aug 21 09:43:09 2013 -0300
     1.2 +++ b/src/render/software/SDL_rotate.c	Wed Aug 21 09:47:10 2013 -0300
     1.3 @@ -42,7 +42,7 @@
     1.4  
     1.5  /* ---- Internally used structures */
     1.6  
     1.7 -/*!
     1.8 +/* !
     1.9  \brief A 32 bit RGBA pixel.
    1.10  */
    1.11  typedef struct tColorRGBA {
    1.12 @@ -52,19 +52,19 @@
    1.13      Uint8 a;
    1.14  } tColorRGBA;
    1.15  
    1.16 -/*!
    1.17 +/* !
    1.18  \brief A 8bit Y/palette pixel.
    1.19  */
    1.20  typedef struct tColorY {
    1.21      Uint8 y;
    1.22  } tColorY;
    1.23  
    1.24 -/*!
    1.25 +/* !
    1.26  \brief Returns maximum of two numbers a and b.
    1.27  */
    1.28  #define MAX(a,b)    (((a) > (b)) ? (a) : (b))
    1.29  
    1.30 -/*!
    1.31 +/* !
    1.32  \brief Number of guard rows added to destination surfaces.
    1.33  
    1.34  This is a simple but effective workaround for observed issues.
    1.35 @@ -76,12 +76,12 @@
    1.36  */
    1.37  #define GUARD_ROWS (2)
    1.38  
    1.39 -/*!
    1.40 +/* !
    1.41  \brief Lower limit of absolute zoom factor or rotation degrees.
    1.42  */
    1.43  #define VALUE_LIMIT 0.001
    1.44  
    1.45 -/*!
    1.46 +/* !
    1.47  \brief Returns colorkey info for a surface
    1.48  */
    1.49  Uint32 _colorkey(SDL_Surface *src)
    1.50 @@ -92,7 +92,7 @@
    1.51  }
    1.52  
    1.53  
    1.54 -/*!
    1.55 +/* !
    1.56  \brief Internal target surface sizing function for rotations with trig result return.
    1.57  
    1.58  \param width The source surface width.
    1.59 @@ -134,7 +134,7 @@
    1.60  }
    1.61  
    1.62  
    1.63 -/*!
    1.64 +/* !
    1.65  \brief Internal 32 bit rotozoomer with optional anti-aliasing.
    1.66  
    1.67  Rotates and zooms 32 bit RGBA/ABGR 'src' surface to 'dst' surface based on the control
    1.68 @@ -252,7 +252,7 @@
    1.69      }
    1.70  }
    1.71  
    1.72 -/*!
    1.73 +/* !
    1.74  
    1.75  \brief Rotates and zooms 8 bit palette/Y 'src' surface to 'dst' surface without smoothing.
    1.76  
    1.77 @@ -317,7 +317,7 @@
    1.78  
    1.79  
    1.80  
    1.81 -/*!
    1.82 +/* !
    1.83  \brief Rotates and zooms a surface with different horizontal and vertival scaling factors and optional anti-aliasing.
    1.84  
    1.85  Rotates a 32bit or 8bit 'src' surface to newly created 'dst' surface.
    1.86 @@ -357,7 +357,7 @@
    1.87      if (src == NULL)
    1.88          return (NULL);
    1.89  
    1.90 -    if (src->flags & SDL_TRUE/*SDL_SRCCOLORKEY */)
    1.91 +    if (src->flags & SDL_TRUE/* SDL_SRCCOLORKEY */)
    1.92      {
    1.93          colorkey = _colorkey(src);
    1.94          SDL_GetRGB(colorkey, src->format, &r, &g, &b);
    1.95 @@ -391,14 +391,14 @@
    1.96          SDL_BlitSurface(src, NULL, rz_src, NULL);
    1.97  
    1.98          if(colorKeyAvailable)
    1.99 -            SDL_SetColorKey(src, SDL_TRUE /*SDL_SRCCOLORKEY */, colorkey);
   1.100 +            SDL_SetColorKey(src, SDL_TRUE /* SDL_SRCCOLORKEY */, colorkey);
   1.101          src_converted = 1;
   1.102          is32bit = 1;
   1.103      }
   1.104  
   1.105  
   1.106      /* Determine target size */
   1.107 -    /*_rotozoomSurfaceSizeTrig(rz_src->w, rz_src->h, angle, &dstwidth, &dstheight, &cangle, &sangle); */
   1.108 +    /* _rotozoomSurfaceSizeTrig(rz_src->w, rz_src->h, angle, &dstwidth, &dstheight, &cangle, &sangle); */
   1.109  
   1.110      /*
   1.111      * Calculate target factors from sin/cos and zoom
   1.112 @@ -459,8 +459,8 @@
   1.113          /*
   1.114          * Turn on source-alpha support
   1.115          */
   1.116 -        /*SDL_SetAlpha(rz_dst, SDL_SRCALPHA, 255); */
   1.117 -        SDL_SetColorKey(rz_dst, /*SDL_SRCCOLORKEY */ SDL_TRUE | SDL_RLEACCEL, _colorkey(rz_src));
   1.118 +        /* SDL_SetAlpha(rz_dst, SDL_SRCALPHA, 255); */
   1.119 +        SDL_SetColorKey(rz_dst, /* SDL_SRCCOLORKEY */ SDL_TRUE | SDL_RLEACCEL, _colorkey(rz_src));
   1.120      } else {
   1.121          /*
   1.122          * Copy palette and colorkey info
   1.123 @@ -475,7 +475,7 @@
   1.124          transformSurfaceY(rz_src, rz_dst, centerx, centery,
   1.125              (int) (sangleinv), (int) (cangleinv),
   1.126              flipx, flipy);
   1.127 -        SDL_SetColorKey(rz_dst, /*SDL_SRCCOLORKEY */ SDL_TRUE | SDL_RLEACCEL, _colorkey(rz_src));
   1.128 +        SDL_SetColorKey(rz_dst, /* SDL_SRCCOLORKEY */ SDL_TRUE | SDL_RLEACCEL, _colorkey(rz_src));
   1.129      }
   1.130      /*
   1.131      * Unlock source surface