A little cleanup on the cleanup, just for consistency.

This commit is contained in:
Sam Lantinga 2013-07-23 19:18:01 -07:00
parent aa5f318964
commit ccb139c73a
3 changed files with 4 additions and 2 deletions

View file

@ -1467,7 +1467,7 @@ SDL_RenderDrawRects(SDL_Renderer * renderer,
int int
SDL_RenderFillRect(SDL_Renderer * renderer, const SDL_Rect * rect) 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); CHECK_RENDERER_MAGIC(renderer, -1);

View file

@ -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 the destination rectangle is NULL, use the entire dest surface */
if (dstrect == NULL) { if (dstrect == NULL) {
fulldst.x = fulldst.y = 0; fulldst.x = fulldst.y = 0;
fulldst.w = dst->w;
fulldst.h = dst->h;
dstrect = &fulldst; dstrect = &fulldst;
} }

View file

@ -138,7 +138,7 @@ CreateApplicationMenus(void)
NSMenu *windowMenu; NSMenu *windowMenu;
NSMenuItem *menuItem; NSMenuItem *menuItem;
if (!NSApp) { if (NSApp == nil) {
return; return;
} }