Clip histogram highlight to graph area.

This commit is contained in:
Bartosz Taudul 2019-06-16 16:23:24 +02:00
parent 26178dfb00
commit 761405e2a7

View File

@ -6820,8 +6820,10 @@ void View::DrawFindZone()
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->AddRect( wpos + ImVec2( 2 + t0, 1 ), wpos + ImVec2( 2 + t1, Height-1 ), 0x44DD8888 );
draw->PopClipRect();
}
}
}