1
0
mirror of https://github.com/wolfpld/tracy synced 2025-01-15 11:57:59 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Bartosz Taudul
5834a4be44
Update NEWS. 2021-06-14 23:52:23 +02:00
Bartosz Taudul
39e317f36d
Fix display of messages with newlines. 2021-06-14 23:51:41 +02:00
2 changed files with 5 additions and 2 deletions

1
NEWS
View File

@ -12,6 +12,7 @@ v0.x.x (xxxx-xx-xx)
- Improved function matching algorithm in compare traces view.
- Added minimal CMake integration layer.
- Reworked rpmalloc initialization.
- Fixed display of messages with newlines on messages list.
v0.7.8 (2021-05-19)

View File

@ -9454,10 +9454,12 @@ void View::DrawMessageLine( const MessageData& msg, bool hasCallstack, int& idx
ImGui::SameLine();
ImGui::TextDisabled( "(%s)", RealToString( tid ) );
ImGui::TableNextColumn();
auto tend = text;
while( *tend != '\0' && *tend != '\n' ) tend++;
ImGui::PushStyleColor( ImGuiCol_Text, msg.color );
const auto cw = ImGui::GetContentRegionAvail().x;
const auto tw = ImGui::CalcTextSize( text ).x;
ImGui::TextUnformatted( text );
const auto tw = ImGui::CalcTextSize( text, tend ).x;
ImGui::TextUnformatted( text, tend );
if( tw > cw && ImGui::IsItemHovered() )
{
ImGui::SetNextWindowSize( ImVec2( 1000, 0 ) );