gpui: Align image sprites to whole pixels (#29227)

Matin Aniss created

Similar to #15822, just applies the same fix to images as they are also
affected by the same issue.

Release Notes:

- N/A

Change summary

crates/gpui/src/window.rs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

Detailed changes

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,