mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-28 07:12:28 +00:00
fix(core): fix jpeg blurring and dimming area
[no changelog]
This commit is contained in:
parent
4af18b66eb
commit
323107e6a8
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user