From 323107e6a83d1299147e6a63f0a457122af8f44e Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Tue, 25 Feb 2025 14:28:16 +0100 Subject: [PATCH] fix(core): fix jpeg blurring and dimming area [no changelog] --- core/embed/rust/src/ui/shape/jpeg.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/embed/rust/src/ui/shape/jpeg.rs b/core/embed/rust/src/ui/shape/jpeg.rs index f6574c07da..04c0659073 100644 --- a/core/embed/rust/src/ui/shape/jpeg.rs +++ b/core/embed/rust/src/ui/shape/jpeg.rs @@ -134,12 +134,12 @@ impl<'a> Shape<'a> for JpegImage<'a> { // Draw dimmed overlay. // This solution is suboptimal and might be replaced by // using faster alpha blending in the hardware. - canvas.fill_rect(clip, Color::black(), 255 - self.dim); + canvas.fill_rect(bounds, Color::black(), 255 - self.dim); } if self.blur_radius > 0 { // Blur the image - canvas.blur_rect(clip, self.blur_radius, cache); + canvas.blur_rect(bounds, self.blur_radius, cache); } }