clang-format: Increase column limit from 80 to 120

This commit is contained in:
Ryan Foster
2024-10-04 18:19:27 -04:00
parent 109f64c446
commit a1fbf1015f
736 changed files with 22684 additions and 45435 deletions
+6 -12
View File
@@ -47,8 +47,7 @@ public:
/* --------------------------------------------------- */
static LRESULT CALLBACK sceneProc(HWND hwnd, UINT message, WPARAM wParam,
LPARAM lParam)
static LRESULT CALLBACK sceneProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message) {
@@ -140,10 +139,8 @@ static HWND CreateTestWindow(HINSTANCE instance)
if (!RegisterClass(&wc))
return 0;
return CreateWindow(TEXT("bla"), TEXT("bla"),
WS_OVERLAPPEDWINDOW | WS_VISIBLE, 1920 / 2 - cx / 2,
1080 / 2 - cy / 2, cx, cy, NULL, NULL, instance,
NULL);
return CreateWindow(TEXT("bla"), TEXT("bla"), WS_OVERLAPPEDWINDOW | WS_VISIBLE, 1920 / 2 - cx / 2,
1080 / 2 - cy / 2, cx, cy, NULL, NULL, instance, NULL);
}
/* --------------------------------------------------- */
@@ -159,8 +156,7 @@ static void RenderWindow(void *data, uint32_t cx, uint32_t cy)
/* --------------------------------------------------- */
int WINAPI WinMain(HINSTANCE instance, HINSTANCE prevInstance, LPSTR cmdLine,
int numCmd)
int WINAPI WinMain(HINSTANCE instance, HINSTANCE prevInstance, LPSTR cmdLine, int numCmd)
{
HWND hwnd = NULL;
base_set_log_handler(do_log, nullptr);
@@ -180,15 +176,13 @@ int WINAPI WinMain(HINSTANCE instance, HINSTANCE prevInstance, LPSTR cmdLine,
/* ------------------------------------------------------ */
/* create source */
SourceContext source = obs_source_create(
"random", "some randon source", NULL, nullptr);
SourceContext source = obs_source_create("random", "some randon source", NULL, nullptr);
if (!source)
throw "Couldn't create random test source";
/* ------------------------------------------------------ */
/* create filter */
SourceContext filter = obs_source_create(
"test_filter", "a nice green filter", NULL, nullptr);
SourceContext filter = obs_source_create("test_filter", "a nice green filter", NULL, nullptr);
if (!filter)
throw "Couldn't create test filter";
obs_source_filter_add(source, filter);