diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-09-03 22:41:38 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-09-03 22:41:38 +0300 |
commit | 0e94ed8fc6add85f19e9aefee738d9d144d1b06c (patch) | |
tree | 329efd444391fb9a3833f79843c621d3d9c0f668 /server/TracyView_Plots.cpp | |
parent | eaa78de53416b11a22d967c356184bea13600eec (diff) |
DrawContents reports if anything was drawn.
Diffstat (limited to 'server/TracyView_Plots.cpp')
-rw-r--r-- | server/TracyView_Plots.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/TracyView_Plots.cpp b/server/TracyView_Plots.cpp index ef215d03..2dd8739c 100644 --- a/server/TracyView_Plots.cpp +++ b/server/TracyView_Plots.cpp @@ -10,7 +10,7 @@ namespace tracy { -void View::DrawPlot( PlotData& plot, double pxns, int& offset, const ImVec2& wpos, bool hover, float yMin, float yMax ) +bool View::DrawPlot( PlotData& plot, double pxns, int& offset, const ImVec2& wpos, bool hover, float yMin, float yMax ) { const auto PlotHeight = 100 * GetScale(); @@ -257,6 +257,7 @@ void View::DrawPlot( PlotData& plot, double pxns, int& offset, const ImVec2& wpo { offset += PlotHeight; } + return true; } void View::DrawPlotPoint( const ImVec2& wpos, float x, float y, int offset, uint32_t color, bool hover, bool hasPrev, double val, double prev, bool merged, PlotValueFormatting format, float PlotHeight ) |