mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Proper tooltip for one condensed lock block.
This commit is contained in:
parent
4821a58720
commit
0aef1b6d4d
@ -2520,7 +2520,7 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos,
|
||||
bool itemHovered = hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( std::max( px0, -10.0 ), offset ), wpos + ImVec2( std::min( pxend, double( w + 10 ) ), offset + ty ) );
|
||||
if( itemHovered )
|
||||
{
|
||||
if( condensed != 0 )
|
||||
if( condensed > 1 )
|
||||
{
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::Text( "Multiple lock events (%" PRIu64 ")", condensed );
|
||||
|
Loading…
Reference in New Issue
Block a user