From 6b550630d0f7f60c74de59b3ff0de434a3123bb2 Mon Sep 17 00:00:00 2001 From: Avii Date: Thu, 6 Aug 2026 13:27:28 +0200 Subject: [PATCH] 1786015648 --- src/trekstor.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/trekstor.rs b/src/trekstor.rs index 1aa551d..a31ffe5 100644 --- a/src/trekstor.rs +++ b/src/trekstor.rs @@ -72,6 +72,10 @@ impl Platform for Trekstor { dbg!("Rendering"); renderer.render(&mut buffer1, ctx.screen.width() as usize); for (i, px) in buffer1.into_iter().enumerate() { + if i > (ctx.screen.width() as usize - 1) { + break; + } + let x = (i % ctx.screen.width() as usize) as u32; let y = (i / ctx.screen.width() as usize) as u32;