From 844db05f102441c83b46dcb1dd325b7edfe95419 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 14 Jan 2023 13:21:45 -0500 Subject: [PATCH] GUI: fix macro tooltip visual glitch --- src/gui/plot_nolerp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/plot_nolerp.cpp b/src/gui/plot_nolerp.cpp index f1120ed4..12bfb9fc 100644 --- a/src/gui/plot_nolerp.cpp +++ b/src/gui/plot_nolerp.cpp @@ -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; }