From 75cceb3cfd117f49dcb93960b2e25a5e837abff5 Mon Sep 17 00:00:00 2001 From: cepetr Date: Mon, 13 May 2024 14:43:39 +0200 Subject: [PATCH] fixup! feat(core): introduce new drawing library --- core/embed/rust/src/ui/shape/render.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/embed/rust/src/ui/shape/render.rs b/core/embed/rust/src/ui/shape/render.rs index 6748ab64c8..59fa4531ca 100644 --- a/core/embed/rust/src/ui/shape/render.rs +++ b/core/embed/rust/src/ui/shape/render.rs @@ -187,6 +187,8 @@ where "No render memory" ); + let lines = slice.height() as usize; + for y in (canvas_clip.y0..canvas_clip.y1).step_by(lines) { // Calculate the coordinates of the slice we will draw into let slice_r = Rect::new(