GUI: fix macro tooltip visual glitch

This commit is contained in:
tildearrow 2023-01-14 13:21:45 -05:00
parent 380f761ee5
commit 844db05f10
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ int PlotCustomEx(ImGuiPlotType plot_type, const char* label, float (*values_gett
if (plot_type == ImGuiPlotType_Lines)
ImGui::SetTooltip("%d: %8.4g\n%d: %8.4g", v_idx, v0, v_idx + 1, v1);
else if (plot_type == ImGuiPlotType_Histogram)
ImGui::SetTooltip("%d: %8.4g", v_idx+values_display_offset, v0);
ImGui::SetTooltip("%d: %d", v_idx+values_display_offset, (int)v0);
}
idx_hovered = v_idx;
}