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 01972a2e9d
commit cc357a636a
3 changed files with 4 additions and 2 deletions

View File

@@ -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);

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 (dstrect == NULL) {
fulldst.x = fulldst.y = 0;
fulldst.w = dst->w;
fulldst.h = dst->h;
dstrect = &fulldst;
}

View File

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