Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-09-03 22:41:38 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-09-03 22:41:38 +0300
commit0e94ed8fc6add85f19e9aefee738d9d144d1b06c (patch)
tree329efd444391fb9a3833f79843c621d3d9c0f668 /server/TracyView_Plots.cpp
parenteaa78de53416b11a22d967c356184bea13600eec (diff)
DrawContents reports if anything was drawn.
Diffstat (limited to 'server/TracyView_Plots.cpp')
-rw-r--r--server/TracyView_Plots.cpp3
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 )