Merged Ryan's changes
authorSam Lantinga <slouken@libsdl.org>
Wed, 03 Oct 2012 19:26:07 -0700
changeset 6552 caa7decef32b
parent 6551 b0679a0d5751 (current diff)
parent 6546 824535ce51b6 (diff)
child 6553 2f03111a2105
Merged Ryan's changes
--- a/src/render/SDL_render.c	Wed Oct 03 19:25:08 2012 -0700
+++ b/src/render/SDL_render.c	Wed Oct 03 19:26:07 2012 -0700
@@ -1472,8 +1472,8 @@
 SDL_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
                const SDL_Rect * srcrect, const SDL_Rect * dstrect)
 {
-    SDL_Rect real_srcrect;
-    SDL_Rect real_dstrect;
+    SDL_Rect real_srcrect = { 0, 0, 0, 0 };
+    SDL_Rect real_dstrect = { 0, 0, 0, 0 };
     SDL_FRect frect;
 
     CHECK_RENDERER_MAGIC(renderer, -1);
@@ -1539,7 +1539,8 @@
                const SDL_Rect * srcrect, const SDL_Rect * dstrect,
                const double angle, const SDL_Point *center, const SDL_RendererFlip flip)
 {
-    SDL_Rect real_srcrect, real_dstrect;
+    SDL_Rect real_srcrect = { 0, 0, 0, 0 };
+    SDL_Rect real_dstrect = { 0, 0, 0, 0 };
     SDL_Point real_center;
     SDL_FRect frect;
     SDL_FPoint fcenter;