From 32e638b046126dba18c7136eded6efbe6032ff65 Mon Sep 17 00:00:00 2001 From: Xphalnos <164882787+Xphalnos@users.noreply.github.com> Date: Sun, 6 Oct 2024 16:48:16 +0200 Subject: [PATCH] imgui: Makes the window edges rounded --- src/imgui/imgui_extension.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/imgui/imgui_extension.cpp b/src/imgui/imgui_extension.cpp index f1c072fa..a4250467 100644 --- a/src/imgui/imgui_extension.cpp +++ b/src/imgui/imgui_extension.cpp @@ -127,6 +127,7 @@ void ImGui_UpdateWindowInformation(bool mainWindow) ImGuiIO& io = ImGui::GetIO(); io.BackendFlags |= ImGuiBackendFlags_HasMouseCursors; io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; + ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 6.0f); // Makes the window edges rounded #if BOOST_OS_WINDOWS io.ImeWindowHandle = mainWindow ? g_window_info.window_main.hwnd : g_window_info.window_pad.hwnd; #else