src/render/software/SDL_rotate.c
changeset 7677 871d43c6968a
parent 7191 75360622e65f
child 7678 286c42d7c5ed
     1.1 --- a/src/render/software/SDL_rotate.c	Tue Aug 20 23:20:32 2013 -0400
     1.2 +++ b/src/render/software/SDL_rotate.c	Wed Aug 21 09:43:09 2013 -0300
     1.3 @@ -357,7 +357,7 @@
     1.4      if (src == NULL)
     1.5          return (NULL);
     1.6  
     1.7 -    if (src->flags & SDL_TRUE/*SDL_SRCCOLORKEY*/)
     1.8 +    if (src->flags & SDL_TRUE/*SDL_SRCCOLORKEY */)
     1.9      {
    1.10          colorkey = _colorkey(src);
    1.11          SDL_GetRGB(colorkey, src->format, &r, &g, &b);
    1.12 @@ -391,7 +391,7 @@
    1.13          SDL_BlitSurface(src, NULL, rz_src, NULL);
    1.14  
    1.15          if(colorKeyAvailable)
    1.16 -            SDL_SetColorKey(src, SDL_TRUE /*SDL_SRCCOLORKEY*/, colorkey);
    1.17 +            SDL_SetColorKey(src, SDL_TRUE /*SDL_SRCCOLORKEY */, colorkey);
    1.18          src_converted = 1;
    1.19          is32bit = 1;
    1.20      }
    1.21 @@ -459,8 +459,8 @@
    1.22          /*
    1.23          * Turn on source-alpha support
    1.24          */
    1.25 -        /*SDL_SetAlpha(rz_dst, SDL_SRCALPHA, 255);*/
    1.26 -        SDL_SetColorKey(rz_dst, /*SDL_SRCCOLORKEY*/ SDL_TRUE | SDL_RLEACCEL, _colorkey(rz_src));
    1.27 +        /*SDL_SetAlpha(rz_dst, SDL_SRCALPHA, 255); */
    1.28 +        SDL_SetColorKey(rz_dst, /*SDL_SRCCOLORKEY */ SDL_TRUE | SDL_RLEACCEL, _colorkey(rz_src));
    1.29      } else {
    1.30          /*
    1.31          * Copy palette and colorkey info
    1.32 @@ -475,7 +475,7 @@
    1.33          transformSurfaceY(rz_src, rz_dst, centerx, centery,
    1.34              (int) (sangleinv), (int) (cangleinv),
    1.35              flipx, flipy);
    1.36 -        SDL_SetColorKey(rz_dst, /*SDL_SRCCOLORKEY*/ SDL_TRUE | SDL_RLEACCEL, _colorkey(rz_src));
    1.37 +        SDL_SetColorKey(rz_dst, /*SDL_SRCCOLORKEY */ SDL_TRUE | SDL_RLEACCEL, _colorkey(rz_src));
    1.38      }
    1.39      /*
    1.40      * Unlock source surface