Explorar o código

video: Add some braces to match SDL coding style.

Ryan C. Gordon %!s(int64=2) %!d(string=hai) anos
pai
achega
1008cc8e5f
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      src/video/SDL_video.c

+ 4 - 2
src/video/SDL_video.c

@@ -698,8 +698,9 @@ SDL_GetDisplayBounds(int displayIndex, SDL_Rect * rect)
 
     CHECK_DISPLAY_INDEX(displayIndex, -1);
 
-    if (!rect)
+    if (!rect) {
         return SDL_InvalidParamError("rect");
+    }
 
     display = &_this->displays[displayIndex];
 
@@ -736,8 +737,9 @@ SDL_GetDisplayUsableBounds(int displayIndex, SDL_Rect * rect)
 
     CHECK_DISPLAY_INDEX(displayIndex, -1);
 
-    if (!rect)
+    if (!rect) {
         return SDL_InvalidParamError("rect");
+    }
 
     display = &_this->displays[displayIndex];