From 8c5333348987080e5fab779196ab06e995c4a225 Mon Sep 17 00:00:00 2001 From: Evan Pezent Date: Mon, 4 Jul 2022 19:30:36 -0500 Subject: [PATCH] fix PlotDigital/Dummy flags --- implot_items.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/implot_items.cpp b/implot_items.cpp index 2b8dfad..8244542 100644 --- a/implot_items.cpp +++ b/implot_items.cpp @@ -2680,8 +2680,8 @@ template IMPLOT_API double PlotHistogram2D(const char* label_id, const d // TODO: Make this behave like all the other plot types (.e. not fixed in y axis) template -void PlotDigitalEx(const char* label_id, Getter getter, ImPlotDigitalFlags) { - if (BeginItem(label_id, ImPlotCol_Fill)) { +void PlotDigitalEx(const char* label_id, Getter getter, ImPlotDigitalFlags flags) { + if (BeginItem(label_id, flags, ImPlotCol_Fill)) { ImPlotContext& gp = *GImPlot; ImDrawList& draw_list = *GetPlotDrawList(); const ImPlotNextItemData& s = GetItemData(); @@ -2816,8 +2816,8 @@ void PlotText(const char* text, double x, double y, const ImVec2& pixel_offset, // [SECTION] PlotDummy //----------------------------------------------------------------------------- -void PlotDummy(const char* label_id, ImPlotDummyFlags) { - if (BeginItem(label_id, ImPlotCol_Line)) +void PlotDummy(const char* label_id, ImPlotDummyFlags flags) { + if (BeginItem(label_id, flags, ImPlotCol_Line)) EndItem(); }