diff --git a/server/TracyTimelineItem.cpp b/server/TracyTimelineItem.cpp index 7cf2c450..586151e9 100644 --- a/server/TracyTimelineItem.cpp +++ b/server/TracyTimelineItem.cpp @@ -94,7 +94,7 @@ void TimelineItem::Draw( bool firstFrame, double pxns, int& offset, const ImVec2 DrawContents( pxns, offset, wpos, hover, yMin, yMax ); if( drawHeader ) { - HeaderExtraContents( hdrOffset, wpos, labelWidth ); + HeaderExtraContents( hdrOffset, wpos, labelWidth, hover ); } } diff --git a/server/TracyTimelineItem.hpp b/server/TracyTimelineItem.hpp index e40358e3..2861f61d 100644 --- a/server/TracyTimelineItem.hpp +++ b/server/TracyTimelineItem.hpp @@ -31,7 +31,7 @@ protected: virtual const char* HeaderLabel() const = 0; virtual void HeaderTooltip( const char* label ) const {}; - virtual void HeaderExtraContents( int offset, const ImVec2& wpos, float labelWidth ) {}; + virtual void HeaderExtraContents( int offset, const ImVec2& wpos, float labelWidth, bool hover ) {}; virtual int64_t RangeBegin() const = 0; virtual int64_t RangeEnd() const = 0; diff --git a/server/TracyTimelineItemPlot.cpp b/server/TracyTimelineItemPlot.cpp index 6d306779..28e66f44 100644 --- a/server/TracyTimelineItemPlot.cpp +++ b/server/TracyTimelineItemPlot.cpp @@ -81,7 +81,7 @@ void TimelineItemPlot::HeaderTooltip( const char* label ) const ImGui::EndTooltip(); } -void TimelineItemPlot::HeaderExtraContents( int offset, const ImVec2& wpos, float labelWidth ) +void TimelineItemPlot::HeaderExtraContents( int offset, const ImVec2& wpos, float labelWidth, bool hover ) { auto draw = ImGui::GetWindowDrawList(); const auto ty = ImGui::GetTextLineHeight(); diff --git a/server/TracyTimelineItemPlot.hpp b/server/TracyTimelineItemPlot.hpp index 4e3b6e05..75367eea 100644 --- a/server/TracyTimelineItemPlot.hpp +++ b/server/TracyTimelineItemPlot.hpp @@ -25,7 +25,7 @@ protected: int64_t RangeEnd() const override; void HeaderTooltip( const char* label ) const override; - void HeaderExtraContents( int offset, const ImVec2& wpos, float labelWidth ) override; + void HeaderExtraContents( int offset, const ImVec2& wpos, float labelWidth, bool hover ) override; private: PlotData* m_plot;