A little cleanup on the cleanup, just for consistency.
This commit is contained in:
parent
aa5f318964
commit
ccb139c73a
3 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -138,7 +138,7 @@ CreateApplicationMenus(void)
|
|||
NSMenu *windowMenu;
|
||||
NSMenuItem *menuItem;
|
||||
|
||||
if (!NSApp) {
|
||||
if (NSApp == nil) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue