Fixed compiler warning about shadowed local variables.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 23 Jun 2015 01:44:44 -0400
changeset 9775 8bd9e4e20d99
parent 9774 3478d2a45b31
child 9776 952ff8a5076f
Fixed compiler warning about shadowed local variables.
src/render/software/SDL_rotate.c
--- a/src/render/software/SDL_rotate.c	Mon Jun 22 21:30:08 2015 -0400
+++ b/src/render/software/SDL_rotate.c	Tue Jun 23 01:44:44 2015 -0400
@@ -466,13 +466,13 @@
     /* copy alpha mod, color mod, and blend mode */
     {
       SDL_BlendMode blendMode;
-      Uint8 alphaMod, r, g, b;
+      Uint8 alphaMod, cr, cg, cb;
       SDL_GetSurfaceAlphaMod(src, &alphaMod);
       SDL_GetSurfaceBlendMode(src, &blendMode);
-      SDL_GetSurfaceColorMod(src, &r, &g, &b);
+      SDL_GetSurfaceColorMod(src, &cr, &cg, &cb);
       SDL_SetSurfaceAlphaMod(rz_dst, alphaMod);
       SDL_SetSurfaceBlendMode(rz_dst, blendMode);
-      SDL_SetSurfaceColorMod(rz_dst, r, g, b);
+      SDL_SetSurfaceColorMod(rz_dst, cr, cg, cb);
     }
 
     /*