From 29d21fe1f7549da8a1c3fcb792981f0d26ed2191 Mon Sep 17 00:00:00 2001 From: casqade Date: Sat, 25 Apr 2026 17:27:13 +0300 Subject: [PATCH] Show tooltips for multiline messages --- profiler/src/profiler/TracyView_Messages.cpp | 2 +- profiler/src/profiler/TracyView_ZoneInfo.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/profiler/src/profiler/TracyView_Messages.cpp b/profiler/src/profiler/TracyView_Messages.cpp index f6ee29fd..cfc5e0a8 100644 --- a/profiler/src/profiler/TracyView_Messages.cpp +++ b/profiler/src/profiler/TracyView_Messages.cpp @@ -365,7 +365,7 @@ void View::DrawMessageLine( const MessageData& msg, bool hasCallstack, int& idx const auto cw = ImGui::GetContentRegionAvail().x; const auto tw = ImGui::CalcTextSize( text, tend ).x; ImGui::TextUnformatted( text, tend ); - if( tw > cw && ImGui::IsItemHovered() ) + if( (tw > cw || *tend != '\0') && ImGui::IsItemHovered() ) { ImGui::SetNextWindowSize( ImVec2( 1000 * GetScale(), 0 ) ); ImGui::BeginTooltip(); diff --git a/profiler/src/profiler/TracyView_ZoneInfo.cpp b/profiler/src/profiler/TracyView_ZoneInfo.cpp index 7274cc4b..c99c2066 100644 --- a/profiler/src/profiler/TracyView_ZoneInfo.cpp +++ b/profiler/src/profiler/TracyView_ZoneInfo.cpp @@ -863,7 +863,7 @@ void View::DrawZoneInfoWindow() const auto cw = ImGui::GetContentRegionAvail().x; const auto tw = ImGui::CalcTextSize( text, tend ).x; ImGui::TextUnformatted( text, tend ); - if( tw > cw && ImGui::IsItemHovered() ) + if( (tw > cw || *tend != '\0') && ImGui::IsItemHovered() ) { ImGui::SetNextWindowSize( ImVec2( 1000 * GetScale(), 0 ) ); ImGui::BeginTooltip();