foxygit / fake-08-xbox360 Log in
commit 0c840773b0f81f55d1df6993fe59ac24514d1e36
Author:     Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Sat Feb 11 18:49:24 2023 -0700
Commit:     Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Sat Feb 11 18:49:24 2023 -0700

    Add braces
---
 platform/SDL2Desktop/source/SDL2Host.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/platform/SDL2Desktop/source/SDL2Host.cpp b/platform/SDL2Desktop/source/SDL2Host.cpp
index 5f253c0..ff308f1 100644
--- a/platform/SDL2Desktop/source/SDL2Host.cpp
+++ b/platform/SDL2Desktop/source/SDL2Host.cpp
@@ -52,13 +52,15 @@ Host::Host()

     int should_be_zero = SDL_GetCurrentDisplayMode(0, &current);

-    if(should_be_zero != 0)
+    if(should_be_zero != 0) {
       // In case of error...
       SDL_Log("Could not get display mode for video display #%d: %s", 0, SDL_GetError());
+    }

-    else
+    else {
       // On success, print the current display mode.
       SDL_Log("Display #%d: current display mode is %dx%dpx @ %dhz.", 0, current.w, current.h, current.refresh_rate);
+    }

     int WINDOW_SIZE_X=current.w;
     int WINDOW_SIZE_Y=current.h;