From 2379d422cfb1875245ac40e591e577dc626d5a91 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 24 Nov 2019 01:21:49 +0100 Subject: [PATCH] GPU zones highlight whole CPU thread timeline. --- server/TracyView.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 561438ad..948cc9d8 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2524,13 +2524,13 @@ void View::DrawZones() const auto txtsz = ImGui::CalcTextSize( txt ); if( m_gpuThread == v->id ) { - draw->AddRectFilled( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( ty + txtsz.x + 4, oldOffset + ty ), 0x448888DD ); - draw->AddRect( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( ty + txtsz.x + 4, oldOffset + ty ), 0x888888DD ); + draw->AddRectFilled( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( w, offset ), 0x228888DD ); + draw->AddRect( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( w, offset ), 0x448888DD ); } if( m_gpuInfoWindow && m_gpuInfoWindowThread == v->id ) { - draw->AddRectFilled( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( ty + txtsz.x + 4, oldOffset + ty ), 0x4488DD88 ); - draw->AddRect( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( ty + txtsz.x + 4, oldOffset + ty ), 0x8888DD88 ); + draw->AddRectFilled( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( w, offset ), 0x2288DD88 ); + draw->AddRect( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( w, offset ), 0x4488DD88 ); } DrawTextContrast( draw, wpos + ImVec2( ty, oldOffset ), labelColor, txt );