From e87dfaf52d3f4e43fb1f6fea57fceaba71568487 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 10 Apr 2023 00:32:13 +0200 Subject: cmake: reenable -Wcomma --- editor/app.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'editor') diff --git a/editor/app.cpp b/editor/app.cpp index e2632f32..8b47bb10 100644 --- a/editor/app.cpp +++ b/editor/app.cpp @@ -146,11 +146,20 @@ fm_settings app::parse_cmdline(int argc, const char* const* const argv) } if (auto str = args.value("window"); str == "fullscreen") - opts.fullscreen = true, opts.resizable = false; + { + opts.fullscreen = true; + opts.resizable = false; + } else if (str == "borderless") - opts.borderless = true, opts.resizable = false; + { + opts.borderless = true; + opts.resizable = false; + } else if (str == "fullscreen-desktop") - opts.fullscreen_desktop = true, opts.resizable = false; + { + opts.fullscreen_desktop = true; + opts.resizable = false; + } else if (str == "maximize" || str == "maximized") opts.maximized = true; else if (str == "windowed") -- cgit v1.2.3