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 image sprites to whole pixels (#29227)

Matin Aniss6caf34ab7e45
diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rs
index a100ac21ca9..63c0a3a3712 100644
--- a/crates/gpui/src/window.rs
+++ b/crates/gpui/src/window.rs
@@ -2659,7 +2659,9 @@ impl Window {
order: 0,
pad: 0,
grayscale,
- bounds,
+ bounds: bounds
+ .map_origin(|origin| origin.floor())
+ .map_size(|size| size.ceil()),
content_mask,
corner_radii,
tile,