Avoid clipping antialiasing in Renderer::overlay

This commit is contained in:
Héctor Ramón Jiménez 2020-07-08 11:40:07 +02:00
parent 21b583c468
commit 33e6682882

View File

@ -67,7 +67,11 @@ where
primitives: vec![ primitives: vec![
base_primitive, base_primitive,
Primitive::Clip { Primitive::Clip {
bounds: overlay_bounds, bounds: Rectangle {
width: overlay_bounds.width + 0.5,
height: overlay_bounds.height + 0.5,
..overlay_bounds
},
offset: Vector::new(0, 0), offset: Vector::new(0, 0),
content: Box::new(overlay_primitives), content: Box::new(overlay_primitives),
}, },