From a54a62d0d74e00a5a02e339cfd80a65a0c01a16d Mon Sep 17 00:00:00 2001 From: bicarus <202771338+bicarus-dev@users.noreply.github.com> Date: Sun, 7 Jun 2026 19:14:43 -0700 Subject: [PATCH] overlay: fix dummy marker spacing (#741) Fix alignment in patches tab --- src/spice2x/overlay/imgui/extensions.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/spice2x/overlay/imgui/extensions.cpp b/src/spice2x/overlay/imgui/extensions.cpp index f03370f..b237d1e 100644 --- a/src/spice2x/overlay/imgui/extensions.cpp +++ b/src/spice2x/overlay/imgui/extensions.cpp @@ -66,7 +66,9 @@ namespace ImGui { void DummyMarker() { // dummy marker that is the same width as HelpMarker/WarnMarker. - ImGui::Dummy(ImVec2(22, 0)); + // "(?)" and "(!)" render to the same width, so calc it so the spacing + // tracks the current font size/scale instead of a fixed pixel count. + ImGui::Dummy(ImVec2(ImGui::CalcTextSize("(?)").x, 0)); } void Knob(float fraction, float size, float thickness, float pos_x, float pos_y) {