mirror of
https://github.com/gwm17/implot.git
synced 2024-11-23 02:38:53 -05:00
fix PlotDigital/Dummy flags
This commit is contained in:
parent
fc0fd11246
commit
8c53333489
|
@ -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)
|
// TODO: Make this behave like all the other plot types (.e. not fixed in y axis)
|
||||||
|
|
||||||
template <typename Getter>
|
template <typename Getter>
|
||||||
void PlotDigitalEx(const char* label_id, Getter getter, ImPlotDigitalFlags) {
|
void PlotDigitalEx(const char* label_id, Getter getter, ImPlotDigitalFlags flags) {
|
||||||
if (BeginItem(label_id, ImPlotCol_Fill)) {
|
if (BeginItem(label_id, flags, ImPlotCol_Fill)) {
|
||||||
ImPlotContext& gp = *GImPlot;
|
ImPlotContext& gp = *GImPlot;
|
||||||
ImDrawList& draw_list = *GetPlotDrawList();
|
ImDrawList& draw_list = *GetPlotDrawList();
|
||||||
const ImPlotNextItemData& s = GetItemData();
|
const ImPlotNextItemData& s = GetItemData();
|
||||||
|
@ -2816,8 +2816,8 @@ void PlotText(const char* text, double x, double y, const ImVec2& pixel_offset,
|
||||||
// [SECTION] PlotDummy
|
// [SECTION] PlotDummy
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
void PlotDummy(const char* label_id, ImPlotDummyFlags) {
|
void PlotDummy(const char* label_id, ImPlotDummyFlags flags) {
|
||||||
if (BeginItem(label_id, ImPlotCol_Line))
|
if (BeginItem(label_id, flags, ImPlotCol_Line))
|
||||||
EndItem();
|
EndItem();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user