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(