mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Don't wrap messages.
This commit is contained in:
parent
953df69b77
commit
f2d6c79742
@ -8715,7 +8715,16 @@ void View::DrawMessages()
|
||||
ImGui::TextDisabled( "(%s)", RealToString( tid ) );
|
||||
ImGui::NextColumn();
|
||||
ImGui::PushStyleColor( ImGuiCol_Text, v->color );
|
||||
ImGui::TextWrapped( "%s", text );
|
||||
const auto cw = ImGui::GetContentRegionAvail().x;
|
||||
const auto tw = ImGui::CalcTextSize( text ).x;
|
||||
ImGui::TextUnformatted( text );
|
||||
if( tw > cw && ImGui::IsItemHovered() )
|
||||
{
|
||||
ImGui::SetNextWindowSize( ImVec2( 1000, 0 ) );
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::TextWrapped( "%s", text );
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
ImGui::PopStyleColor();
|
||||
ImGui::NextColumn();
|
||||
if( hasCallstack )
|
||||
|
Loading…
Reference in New Issue
Block a user