From 6caf34ab7e452d3794aedb4e65e50d5ec6f18f21 Mon Sep 17 00:00:00 2001 From: Matin Aniss <76515905+MatinAniss@users.noreply.github.com> Date: Wed, 23 Apr 2025 03:29:03 +1000 Subject: [PATCH] gpui: Align image sprites to whole pixels (#29227) Similar to #15822, just applies the same fix to images as they are also affected by the same issue. Release Notes: - N/A --- crates/gpui/src/window.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rs index a100ac21ca..63c0a3a371 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,