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 );