From 3bb33cb3bfa72cecc9fa0754e52f93181267ee85 Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Wed, 15 Jan 2025 12:54:30 -0800 Subject: [PATCH] Add forgotten multiply by two to titlebar button right alignment position calculation. --- backends/ui/imgui/RendererBackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/ui/imgui/RendererBackend.cpp b/backends/ui/imgui/RendererBackend.cpp index bca0d1f..e83dbe4 100644 --- a/backends/ui/imgui/RendererBackend.cpp +++ b/backends/ui/imgui/RendererBackend.cpp @@ -508,7 +508,7 @@ void RendererBackend::EndMainMenuBar() { float padding = ImGui::GetStyle().FramePadding.x; float spacing = ImGui::GetStyle().ItemSpacing.x; for (size_t i = 0; i < titlebar_btn_count; i++) { - tmp -= padding; + tmp -= padding * 2.0f; // No need to use the correct index, as long as this is hit only once. if (i == 0) tmp -= spacing / 2.0f; else tmp -= spacing;