mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Clip histogram highlight to graph area.
This commit is contained in:
parent
26178dfb00
commit
761405e2a7
@ -6820,8 +6820,10 @@ void View::DrawFindZone()
|
|||||||
t1 = ( e - tmin ) / float( tmax - tmin ) * numBins;
|
t1 = ( e - tmin ) / float( tmax - tmin ) * numBins;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
draw->PushClipRect( wpos, wpos + ImVec2( w, Height ), true );
|
||||||
draw->AddRectFilled( wpos + ImVec2( 2 + t0, 1 ), wpos + ImVec2( 2 + t1, Height-1 ), 0x22DD8888 );
|
draw->AddRectFilled( wpos + ImVec2( 2 + t0, 1 ), wpos + ImVec2( 2 + t1, Height-1 ), 0x22DD8888 );
|
||||||
draw->AddRect( wpos + ImVec2( 2 + t0, 1 ), wpos + ImVec2( 2 + t1, Height-1 ), 0x44DD8888 );
|
draw->AddRect( wpos + ImVec2( 2 + t0, 1 ), wpos + ImVec2( 2 + t1, Height-1 ), 0x44DD8888 );
|
||||||
|
draw->PopClipRect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user