Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
A little cleanup on the cleanup, just for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 24, 2013
1 parent 10c2bb4 commit b3e9b35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/render/SDL_render.c
Expand Up @@ -1467,7 +1467,7 @@ SDL_RenderDrawRects(SDL_Renderer * renderer,
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);

Expand Down
2 changes: 2 additions & 0 deletions src/video/SDL_surface.c
Expand Up @@ -529,6 +529,8 @@ SDL_UpperBlit(SDL_Surface * src, const SDL_Rect * srcrect,
/* 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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoaevents.m
Expand Up @@ -138,7 +138,7 @@ - (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filenam
NSMenu *windowMenu;
NSMenuItem *menuItem;

if (!NSApp) {
if (NSApp == nil) {
return;
}

Expand Down

0 comments on commit b3e9b35

Please sign in to comment.