From 0fb77b476a1f0b18ecb0b1963c2dc9932170e6bb Mon Sep 17 00:00:00 2001 From: cepetr Date: Thu, 2 May 2024 10:01:31 +0200 Subject: [PATCH] fixup! feat(core): introduce new drawing library --- core/embed/rust/src/ui/shape/cache/jpeg_cache.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/embed/rust/src/ui/shape/cache/jpeg_cache.rs b/core/embed/rust/src/ui/shape/cache/jpeg_cache.rs index 76544b4e2..4fe0544f8 100644 --- a/core/embed/rust/src/ui/shape/cache/jpeg_cache.rs +++ b/core/embed/rust/src/ui/shape/cache/jpeg_cache.rs @@ -68,7 +68,7 @@ impl<'a> JpegCacheSlot<'a> { .uninit .init(UnsafeCell::new([0; JPEG_SCRATCHPAD_SIZE])); - let canvas_buff = bump + let row_buff = bump .alloc_t()? .uninit .init(UnsafeCell::new([0; JPEG_BUFF_SIZE])); @@ -81,7 +81,7 @@ impl<'a> JpegCacheSlot<'a> { scratchpad, row_y: 0, row_canvas: None, - row_buff: canvas_buff, + row_buff, }) }