mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08: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 );
|
ImGui::BeginChild( "##zoneWin", ImVec2( ImGui::GetWindowContentRegionWidth(), ImGui::GetContentRegionAvail().y ), false, ImGuiWindowFlags_AlwaysVerticalScrollbar | ImGuiWindowFlags_NoScrollWithMouse );
|
||||||
|
|
||||||
const auto wpos = ImGui::GetCursorScreenPos();
|
const auto wpos = ImGui::GetCursorScreenPos();
|
||||||
@ -1874,9 +1877,6 @@ void View::DrawZones()
|
|||||||
const auto to = 9.f;
|
const auto to = 9.f;
|
||||||
const auto th = ( ty - to ) * sqrt( 3 ) * 0.5;
|
const auto th = ( ty - to ) * sqrt( 3 ) * 0.5;
|
||||||
|
|
||||||
const auto yMin = linepos.y;
|
|
||||||
const auto yMax = yMin + lineh;
|
|
||||||
|
|
||||||
// gpu zones
|
// gpu zones
|
||||||
if( m_drawGpuZones )
|
if( m_drawGpuZones )
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user