Make Line::paint interface consistent with Line::paint_wrapped

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra
2021-09-02 14:33:52 +02:00
co-authored by Nathan Sobo
parent bdc35f03f2
commit 6a071e865f
4 changed files with 46 additions and 35 deletions
+3 -3
View File
@@ -49,7 +49,7 @@ impl gpui::Element for TextElement {
fn paint(
&mut self,
bounds: RectF,
_: RectF,
visible_bounds: RectF,
_: &mut Self::LayoutState,
cx: &mut gpui::PaintContext,
) -> Self::PaintState {
@@ -84,11 +84,11 @@ impl gpui::Element for TextElement {
);
cx.scene.push_quad(Quad {
bounds: bounds,
bounds,
background: Some(Color::white()),
..Default::default()
});
line.paint(bounds.origin(), bounds, cx);
line.paint(bounds.origin(), visible_bounds, bounds.height(), cx);
}
fn dispatch_event(