From 314b1b48c843dcc84dbbdf0fb4bdc546d629f70b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 23 Dec 2022 19:56:39 +0100 Subject: [PATCH] Condense source diff. --- server/TracyView_Compare.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/TracyView_Compare.cpp b/server/TracyView_Compare.cpp index e27ff21a..498e1bdc 100644 --- a/server/TracyView_Compare.cpp +++ b/server/TracyView_Compare.cpp @@ -372,7 +372,9 @@ void View::DrawCompare() auto it = tfc.find( v ); assert( it != tfc.end() ); ImGui::PushFont( m_fixedFont ); + ImGui::PushStyleVar( ImGuiStyleVar_ItemSpacing, ImVec2( 0, 0 ) ); PrintFile( it->second.data, it->second.len, 0xFF6666FF ); + ImGui::PopStyleVar(); ImGui::PopFont(); ImGui::TreePop(); } @@ -394,7 +396,9 @@ void View::DrawCompare() auto it = ofc.find( v ); assert( it != ofc.end() ); ImGui::PushFont( m_fixedFont ); + ImGui::PushStyleVar( ImGuiStyleVar_ItemSpacing, ImVec2( 0, 0 ) ); PrintFile( it->second.data, it->second.len, 0xFF66DD66 ); + ImGui::PopStyleVar(); ImGui::PopFont(); ImGui::TreePop(); } @@ -414,7 +418,9 @@ void View::DrawCompare() if( ImGui::TreeNode( v.first ) ) { ImGui::PushFont( m_fixedFont ); + ImGui::PushStyleVar( ImGuiStyleVar_ItemSpacing, ImVec2( 0, 0 ) ); PrintDiff( v.second ); + ImGui::PopStyleVar(); ImGui::PopFont(); ImGui::TreePop(); }