Get proper yMin, yMax values.

This commit is contained in:
Bartosz Taudul 2019-06-02 13:58:30 +02:00
parent 9bbaab8897
commit 96b1df67b9

View File

@ -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 )
{