mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Get proper yMin, yMax values.
This commit is contained in:
parent
9bbaab8897
commit
96b1df67b9
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user