1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

DrawContents reports if anything was drawn.

This commit is contained in:
Bartosz Taudul
2022-09-03 21:41:38 +02:00
parent eaa78de534
commit 0e94ed8fc6
5 changed files with 7 additions and 6 deletions
+2 -1
View File
@@ -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 )