A little cleanup on the cleanup, just for consistency.
authorSam Lantinga <slouken@libsdl.org>
Tue, 23 Jul 2013 19:18:01 -0700
changeset 75114ce3cc948a00
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
     1.1 --- a/src/render/SDL_render.c	Tue Jul 23 17:40:18 2013 -0700
     1.2 +++ b/src/render/SDL_render.c	Tue Jul 23 19:18:01 2013 -0700
     1.3 @@ -1467,7 +1467,7 @@
     1.4  int
     1.5  SDL_RenderFillRect(SDL_Renderer * renderer, const SDL_Rect * rect)
     1.6  {
     1.7 -    SDL_Rect full_rect = {0};
     1.8 +    SDL_Rect full_rect = { 0, 0, 0, 0 };
     1.9  
    1.10      CHECK_RENDERER_MAGIC(renderer, -1);
    1.11  
     2.1 --- a/src/video/SDL_surface.c	Tue Jul 23 17:40:18 2013 -0700
     2.2 +++ b/src/video/SDL_surface.c	Tue Jul 23 19:18:01 2013 -0700
     2.3 @@ -529,6 +529,8 @@
     2.4      /* If the destination rectangle is NULL, use the entire dest surface */
     2.5      if (dstrect == NULL) {
     2.6          fulldst.x = fulldst.y = 0;
     2.7 +        fulldst.w = dst->w;
     2.8 +        fulldst.h = dst->h;
     2.9          dstrect = &fulldst;
    2.10      }
    2.11  
     3.1 --- a/src/video/cocoa/SDL_cocoaevents.m	Tue Jul 23 17:40:18 2013 -0700
     3.2 +++ b/src/video/cocoa/SDL_cocoaevents.m	Tue Jul 23 19:18:01 2013 -0700
     3.3 @@ -138,7 +138,7 @@
     3.4      NSMenu *windowMenu;
     3.5      NSMenuItem *menuItem;
     3.6  
     3.7 -    if (!NSApp) {
     3.8 +    if (NSApp == nil) {
     3.9          return;
    3.10      }
    3.11