imgui: Makes the window edges rounded (#1143)

This commit is contained in:
¥IGA
2024-10-03 19:28:41 +02:00
committed by GitHub
parent ff13aff862
commit 009f956d8d
2 changed files with 5 additions and 6 deletions

View File

@@ -51,6 +51,7 @@ void Initialize(const ::Vulkan::Instance& instance, const Frontend::WindowSDL& w
io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad;
io.ConfigFlags |= ImGuiConfigFlags_DockingEnable;
io.DisplaySize = ImVec2((float)window.getWidth(), (float)window.getHeight());
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 6.0f); // Makes the window edges rounded
auto path = config_path.u8string();
char* config_file_buf = new char[path.size() + 1]();