Fixed compiler warning about shadowed local variables.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 23 Jun 2015 01:44:44 -0400
changeset 97758bd9e4e20d99
parent 9774 3478d2a45b31
child 9776 952ff8a5076f
Fixed compiler warning about shadowed local variables.
src/render/software/SDL_rotate.c
     1.1 --- a/src/render/software/SDL_rotate.c	Mon Jun 22 21:30:08 2015 -0400
     1.2 +++ b/src/render/software/SDL_rotate.c	Tue Jun 23 01:44:44 2015 -0400
     1.3 @@ -466,13 +466,13 @@
     1.4      /* copy alpha mod, color mod, and blend mode */
     1.5      {
     1.6        SDL_BlendMode blendMode;
     1.7 -      Uint8 alphaMod, r, g, b;
     1.8 +      Uint8 alphaMod, cr, cg, cb;
     1.9        SDL_GetSurfaceAlphaMod(src, &alphaMod);
    1.10        SDL_GetSurfaceBlendMode(src, &blendMode);
    1.11 -      SDL_GetSurfaceColorMod(src, &r, &g, &b);
    1.12 +      SDL_GetSurfaceColorMod(src, &cr, &cg, &cb);
    1.13        SDL_SetSurfaceAlphaMod(rz_dst, alphaMod);
    1.14        SDL_SetSurfaceBlendMode(rz_dst, blendMode);
    1.15 -      SDL_SetSurfaceColorMod(rz_dst, r, g, b);
    1.16 +      SDL_SetSurfaceColorMod(rz_dst, cr, cg, cb);
    1.17      }
    1.18  
    1.19      /*