mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08: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 ) );
|
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( itemHovered )
|
||||||
{
|
{
|
||||||
if( condensed != 0 )
|
if( condensed > 1 )
|
||||||
{
|
{
|
||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
ImGui::Text( "Multiple lock events (%" PRIu64 ")", condensed );
|
ImGui::Text( "Multiple lock events (%" PRIu64 ")", condensed );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user