1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-05 06:33:52 +00:00

Do not draw time subdividers on a nanosecond scale.

This commit is contained in:
Bartosz Taudul 2019-02-10 16:04:04 +01:00
parent c7e64bb8a8
commit b7bd3696b7

View File

@ -1433,6 +1433,8 @@ bool View::DrawZoneFramesHeader()
tw = ImGui::CalcTextSize( txt ).x;
}
if( scale != 0 )
{
for( int i=1; i<5; i++ )
{
draw->AddLine( wpos + ImVec2( x + i * dx / 10, 0 ), wpos + ImVec2( x + i * dx / 10, round( ty * 0.25 ) ), 0x33FFFFFF );
@ -1442,6 +1444,7 @@ bool View::DrawZoneFramesHeader()
{
draw->AddLine( wpos + ImVec2( x + i * dx / 10, 0 ), wpos + ImVec2( x + i * dx / 10, round( ty * 0.25 ) ), 0x33FFFFFF );
}
}
x += dx;
tt += step;