Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

gpui: Align SVG sprites to whole pixels (#15822)

apricotbucket28ab1fabef6806
diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rs
index 6be4126f3d8..1cfbe0dbaec 100644
--- a/crates/gpui/src/window.rs
+++ b/crates/gpui/src/window.rs
@@ -2597,7 +2597,9 @@ impl<'a> WindowContext<'a> {
.insert_primitive(MonochromeSprite {
order: 0,
pad: 0,
- bounds,
+ bounds: bounds
+ .map_origin(|origin| origin.floor())
+ .map_size(|size| size.ceil()),
content_mask,
color,
tile,