SDL: Small format changed (using clang-format 15.0.2-1)

From 778b8926b4808f0642a331ed84a9e8e19899b6db Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Thu, 1 Dec 2022 09:39:08 +0100
Subject: [PATCH] Small format changed (using clang-format 15.0.2-1)

---
 src/core/linux/SDL_evdev.c                |  4 ++--
 src/core/winrt/SDL_winrtapp_direct3d.cpp  |  7 +++----
 src/dynapi/SDL_dynapi.c                   |  5 ++++-
 src/joystick/SDL_sysjoystick.h            |  2 +-
 src/joystick/linux/SDL_sysjoystick_c.h    |  4 ++--
 src/sensor/android/SDL_androidsensor.c    |  1 -
 src/video/SDL_blit_N.c                    | 10 ++++++++--
 src/video/windows/SDL_windowsmessagebox.c |  4 ++--
 8 files changed, 22 insertions(+), 15 deletions(-)

diff --git a/src/core/linux/SDL_evdev.c b/src/core/linux/SDL_evdev.c
index 443060279b1a..d26fb5d2e22a 100644
--- a/src/core/linux/SDL_evdev.c
+++ b/src/core/linux/SDL_evdev.c
@@ -92,9 +92,9 @@ typedef struct SDL_evdevlist_item
             } delta;
             int tracking_id;
             int x, y, pressure;
-        } * slots;
+        } *slots;
 
-    } * touchscreen_data;
+    } *touchscreen_data;
 
     /* Mouse state */
     SDL_bool high_res_wheel;
diff --git a/src/core/winrt/SDL_winrtapp_direct3d.cpp b/src/core/winrt/SDL_winrtapp_direct3d.cpp
index 665a9beeec69..191f51514427 100644
--- a/src/core/winrt/SDL_winrtapp_direct3d.cpp
+++ b/src/core/winrt/SDL_winrtapp_direct3d.cpp
@@ -46,7 +46,6 @@ using namespace Windows::Phone::UI::Input;
 /* SDL includes */
 extern "C" {
 #include "../../video/SDL_sysvideo.h"
-//#include "../../SDL_hints_c.h"
 #include "../../events/SDL_events_c.h"
 #include "../../events/SDL_keyboard_c.h"
 #include "../../events/SDL_mouse_c.h"
@@ -69,9 +68,9 @@ extern "C" void D3D11_Trim(SDL_Renderer *);
 
 // Compile-time debugging options:
 // To enable, uncomment; to disable, comment them out.
-//#define LOG_POINTER_EVENTS 1
-//#define LOG_WINDOW_EVENTS 1
-//#define LOG_ORIENTATION_EVENTS 1
+// #define LOG_POINTER_EVENTS 1
+// #define LOG_WINDOW_EVENTS 1
+// #define LOG_ORIENTATION_EVENTS 1
 
 // HACK, DLudwig: record a reference to the global, WinRT 'app'/view.
 // SDL/WinRT will use this throughout its code.
diff --git a/src/dynapi/SDL_dynapi.c b/src/dynapi/SDL_dynapi.c
index 008471e8f063..62625049c2a7 100644
--- a/src/dynapi/SDL_dynapi.c
+++ b/src/dynapi/SDL_dynapi.c
@@ -201,7 +201,10 @@ SDL_DYNAPI_VARARGS(static, _DEFAULT, SDL_InitDynamicAPI())
 /* Public API functions to jump into the jump table. */
 #if DISABLE_JUMP_MAGIC
 #define SDL_DYNAPI_PROC(rc, fn, params, args, ret) \
-    rc SDLCALL fn params { ret jump_table.fn args; }
+    rc SDLCALL fn params                           \
+    {                                              \
+        ret jump_table.fn args;                    \
+    }
 #define SDL_DYNAPI_PROC_NO_VARARGS 1
 #include "SDL_dynapi_procs.h"
 #undef SDL_DYNAPI_PROC
diff --git a/src/joystick/SDL_sysjoystick.h b/src/joystick/SDL_sysjoystick.h
index ecdf3e3ee694..93cb0ea65c4e 100644
--- a/src/joystick/SDL_sysjoystick.h
+++ b/src/joystick/SDL_sysjoystick.h
@@ -88,7 +88,7 @@ struct _SDL_Joystick
     {
         int dx;
         int dy;
-    } * balls; /* Current ball motion deltas */
+    } *balls; /* Current ball motion deltas */
 
     int nbuttons;   /* Number of buttons on the joystick */
     Uint8 *buttons; /* Current button states */
diff --git a/src/joystick/linux/SDL_sysjoystick_c.h b/src/joystick/linux/SDL_sysjoystick_c.h
index 138eedb0ebd9..b021f374240f 100644
--- a/src/joystick/linux/SDL_sysjoystick_c.h
+++ b/src/joystick/linux/SDL_sysjoystick_c.h
@@ -43,12 +43,12 @@ struct joystick_hwdata
     struct hwdata_hat
     {
         int axis[2];
-    } * hats;
+    } *hats;
     /* The current Linux joystick driver maps balls to two axes */
     struct hwdata_ball
     {
         int axis[2];
-    } * balls;
+    } *balls;
 
     /* Support for the Linux 2.4 unified input interface */
     Uint8 key_map[KEY_MAX];
diff --git a/src/sensor/android/SDL_androidsensor.c b/src/sensor/android/SDL_androidsensor.c
index 8abf27894ed6..82cb3e31abff 100644
--- a/src/sensor/android/SDL_androidsensor.c
+++ b/src/sensor/android/SDL_androidsensor.c
@@ -28,7 +28,6 @@
 #include "SDL_androidsensor.h"
 #include "../SDL_syssensor.h"
 #include "../SDL_sensor_c.h"
-//#include "../../core/android/SDL_android.h"
 
 #ifndef LOOPER_ID_USER
 #define LOOPER_ID_USER 3
diff --git a/src/video/SDL_blit_N.c b/src/video/SDL_blit_N.c
index 5782f5eeb047..5f510d851827 100644
--- a/src/video/SDL_blit_N.c
+++ b/src/video/SDL_blit_N.c
@@ -81,9 +81,15 @@ GetL3CacheSize(void)
     (vector unsigned short)(a, b, c, d, e, f, g, h)
 #else
 #define VECUINT8_LITERAL(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) \
-    (vector unsigned char) { a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p }
+    (vector unsigned char)                                               \
+    {                                                                    \
+        a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p                   \
+    }
 #define VECUINT16_LITERAL(a, b, c, d, e, f, g, h) \
-    (vector unsigned short) { a, b, c, d, e, f, g, h }
+    (vector unsigned short)                       \
+    {                                             \
+        a, b, c, d, e, f, g, h                    \
+    }
 #endif
 
 #define UNALIGNED_PTR(x)       (((size_t)x) & 0x0000000F)
diff --git a/src/video/windows/SDL_windowsmessagebox.c b/src/video/windows/SDL_windowsmessagebox.c
index df299e085883..f8a4f8ff6ba3 100644
--- a/src/video/windows/SDL_windowsmessagebox.c
+++ b/src/video/windows/SDL_windowsmessagebox.c
@@ -86,9 +86,9 @@ enum _TASKDIALOG_FLAGS
     TDF_RTL_LAYOUT = 0x2000,
     TDF_NO_DEFAULT_RADIO_BUTTON = 0x4000,
     TDF_CAN_BE_MINIMIZED = 0x8000,
-    //#if (NTDDI_VERSION >= NTDDI_WIN8)
+    // #if (NTDDI_VERSION >= NTDDI_WIN8)
     TDF_NO_SET_FOREGROUND = 0x00010000, // Don't call SetForegroundWindow() when activating the dialog
-                                        //#endif // (NTDDI_VERSION >= NTDDI_WIN8)
+                                        // #endif // (NTDDI_VERSION >= NTDDI_WIN8)
     TDF_SIZE_TO_CONTENT = 0x01000000    // used by ShellMessageBox to emulate MessageBox sizing behavior
 };
 typedef int TASKDIALOG_FLAGS; // Note: _TASKDIALOG_FLAGS is an int