1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-27 23:02:02 +00:00

fix(core): fix jpeg blurring and dimming area

[no changelog]
This commit is contained in:
tychovrahe 2025-02-25 14:28:16 +01:00 committed by TychoVrahe
parent 4af18b66eb
commit 323107e6a8

View File

@ -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);
}
}