mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 05:06:46 -05:00
A little cleanup on the cleanup, just for consistency.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user