From c40f1bbe4ea926a70b7ec99e48eef6b77175b32c Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 18 Dec 2021 18:00:08 -0500 Subject: [PATCH] fix build error --- src/gui/plot_nolerp.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui/plot_nolerp.cpp b/src/gui/plot_nolerp.cpp index 83033c77..f5b98fda 100644 --- a/src/gui/plot_nolerp.cpp +++ b/src/gui/plot_nolerp.cpp @@ -79,7 +79,6 @@ int PlotNoLerpEx(ImGuiPlotType plot_type, const char* label, float (*values_gett IM_ASSERT(v_idx >= 0 && v_idx < values_count); const float v0 = values_getter(data, (v_idx + values_offset) % values_count); - const float v1 = values_getter(data, (v_idx + 1 + values_offset) % values_count); if (plot_type == ImGuiPlotType_Lines) ImGui::SetTooltip("%d: %8.4g", v_idx, v0); else if (plot_type == ImGuiPlotType_Histogram) @@ -93,7 +92,6 @@ int PlotNoLerpEx(ImGuiPlotType plot_type, const char* label, float (*values_gett float v0 = values_getter(data, (0 + values_offset) % values_count); float t0 = 0.0f; ImVec2 tp0 = ImVec2( t0, 1.0f - ImSaturate((v0 - scale_min) * inv_scale) ); // Point in the normalized space of our target rectangle - float histogram_zero_line_t = (scale_min * scale_max < 0.0f) ? (1 + scale_min * inv_scale) : (scale_min < 0.0f ? 0.0f : 1.0f); // Where does the zero line stands const ImU32 col_base = ImGui::GetColorU32((plot_type == ImGuiPlotType_Lines) ? ImGuiCol_PlotLines : ImGuiCol_PlotHistogram); const ImU32 col_hovered = ImGui::GetColorU32((plot_type == ImGuiPlotType_Lines) ? ImGuiCol_PlotLinesHovered : ImGuiCol_PlotHistogramHovered); @@ -146,4 +144,4 @@ void PlotNoLerp(const char* label, const float* values, int values_count, int va { FurnacePlotArrayGetterData data(values, stride); PlotNoLerpEx(ImGuiPlotType_Lines, label, &Plot_ArrayGetter, (void*)&data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); -} \ No newline at end of file +}