A little cleanup on the cleanup, just for consistency.
authorSam Lantinga <slouken@libsdl.org>
Tue, 23 Jul 2013 19:18:01 -0700
changeset 7511 4ce3cc948a00
parent 7510 dbba26bab0f8
child 7512 462839f2f408
A little cleanup on the cleanup, just for consistency.
src/render/SDL_render.c
src/video/SDL_surface.c
src/video/cocoa/SDL_cocoaevents.m
--- a/src/render/SDL_render.c	Tue Jul 23 17:40:18 2013 -0700
+++ b/src/render/SDL_render.c	Tue Jul 23 19:18:01 2013 -0700
@@ -1467,7 +1467,7 @@
 int
 SDL_RenderFillRect(SDL_Renderer * renderer, const SDL_Rect * rect)
 {
-    SDL_Rect full_rect = {0};
+    SDL_Rect full_rect = { 0, 0, 0, 0 };
 
     CHECK_RENDERER_MAGIC(renderer, -1);
 
--- a/src/video/SDL_surface.c	Tue Jul 23 17:40:18 2013 -0700
+++ b/src/video/SDL_surface.c	Tue Jul 23 19:18:01 2013 -0700
@@ -529,6 +529,8 @@
     /* If the destination rectangle is NULL, use the entire dest surface */
     if (dstrect == NULL) {
         fulldst.x = fulldst.y = 0;
+        fulldst.w = dst->w;
+        fulldst.h = dst->h;
         dstrect = &fulldst;
     }
 
--- a/src/video/cocoa/SDL_cocoaevents.m	Tue Jul 23 17:40:18 2013 -0700
+++ b/src/video/cocoa/SDL_cocoaevents.m	Tue Jul 23 19:18:01 2013 -0700
@@ -138,7 +138,7 @@
     NSMenu *windowMenu;
     NSMenuItem *menuItem;
 
-    if (!NSApp) {
+    if (NSApp == nil) {
         return;
     }