From 96b1df67b9ffd465a235512cb307e355902bf2bd Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 2 Jun 2019 13:58:30 +0200 Subject: [PATCH] Get proper yMin, yMax values. --- server/TracyView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 0c1396a2..a2ddbaf4 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -1851,6 +1851,9 @@ void View::DrawZones() } } + const auto yMin = ImGui::GetCursorScreenPos().y; + const auto yMax = linepos.y + lineh; + ImGui::BeginChild( "##zoneWin", ImVec2( ImGui::GetWindowContentRegionWidth(), ImGui::GetContentRegionAvail().y ), false, ImGuiWindowFlags_AlwaysVerticalScrollbar | ImGuiWindowFlags_NoScrollWithMouse ); const auto wpos = ImGui::GetCursorScreenPos(); @@ -1874,9 +1877,6 @@ void View::DrawZones() const auto to = 9.f; const auto th = ( ty - to ) * sqrt( 3 ) * 0.5; - const auto yMin = linepos.y; - const auto yMax = yMin + lineh; - // gpu zones if( m_drawGpuZones ) {