Skip to content

Commit

Permalink
fix PlotDigital/Dummy flags
Browse files Browse the repository at this point in the history
  • Loading branch information
epezent committed Jul 5, 2022
1 parent fc0fd11 commit 8c53333
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions implot_items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2680,8 +2680,8 @@ template IMPLOT_API double PlotHistogram2D<double>(const char* label_id, const d
// TODO: Make this behave like all the other plot types (.e. not fixed in y axis)

template <typename Getter>
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();
Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit 8c53333

Please sign in to comment.