overlay: fix dummy marker spacing (#741)

Fix alignment in patches tab
This commit is contained in:
bicarus
2026-06-07 19:14:43 -07:00
committed by GitHub
parent 100caa0f5c
commit a54a62d0d7
+3 -1
View File
@@ -66,7 +66,9 @@ namespace ImGui {
void DummyMarker() { void DummyMarker() {
// dummy marker that is the same width as HelpMarker/WarnMarker. // 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) { void Knob(float fraction, float size, float thickness, float pos_x, float pos_y) {