1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00

fixup! feat(core): introduce new drawing library

This commit is contained in:
cepetr 2024-05-02 10:01:31 +02:00
parent a2eb05d4c4
commit 0fb77b476a

View File

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