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;