Use smaller quads to draw borders

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2023-12-21 17:54:13 +01:00
parent 67f76468f1
commit c03c0d50d5
3 changed files with 78 additions and 4 deletions

View file

@ -3074,6 +3074,7 @@ impl From<(&'static str, u64)> for ElementId {
}
/// A rectangle, to be rendered on the screen by GPUI at the given position and size.
#[derive(Clone)]
pub struct PaintQuad {
bounds: Bounds<Pixels>,
corner_radii: Corners<Pixels>,