From f766614db0d566b5ea645b6f702cd644b01e42f4 Mon Sep 17 00:00:00 2001 From: ozlb Date: Tue, 12 May 2020 15:26:44 +0200 Subject: [PATCH] PlotDigital vs FitThisFrame FitThisFrame in PlotDigital it' not necessary due to actual nature of digital plot. --- implot.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/implot.cpp b/implot.cpp index 98cb7e8..de8e2ad 100644 --- a/implot.cpp +++ b/implot.cpp @@ -2563,14 +2563,6 @@ inline void PlotDigitalEx(const char* label_id, Getter getter, int count, int of if (gp.Style.Colors[ImPlotCol_Line].w != -1) item->Color = gp.Style.Colors[ImPlotCol_Line]; - // find data extents - if (gp.FitThisFrame) { - for (int i = 0; i < count; ++i) { - ImVec2 p = getter(i); - FitPoint(p); - } - } - ImGui::PushClipRect(gp.BB_Grid.Min, gp.BB_Grid.Max, true); bool cull = HasFlag(gp.CurrentPlot->Flags, ImPlotFlags_CullData);