From 33e6682882cd09dd210da123eb3b893e33bd977d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Wed, 8 Jul 2020 11:40:07 +0200 Subject: [PATCH] Avoid clipping antialiasing in `Renderer::overlay` --- graphics/src/renderer.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/graphics/src/renderer.rs b/graphics/src/renderer.rs index 771f436c..5ca6c057 100644 --- a/graphics/src/renderer.rs +++ b/graphics/src/renderer.rs @@ -67,7 +67,11 @@ where primitives: vec![ base_primitive, 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), content: Box::new(overlay_primitives), },