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:
parent
c7e64bb8a8
commit
b7bd3696b7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user