From 8ef850acb9d98aac5a603d667999e320c4499f82 Mon Sep 17 00:00:00 2001 From: Avii Date: Thu, 6 Aug 2026 13:26:12 +0200 Subject: [PATCH] 1786015572 --- src/trekstor.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/trekstor.rs b/src/trekstor.rs index 484541b..1aa551d 100644 --- a/src/trekstor.rs +++ b/src/trekstor.rs @@ -75,6 +75,11 @@ impl Platform for Trekstor { let x = (i % ctx.screen.width() as usize) as u32; let y = (i / ctx.screen.width() as usize) as u32; + if x >= ctx.screen.width() || y >= ctx.screen.height() { + println!("Out of bounds {} {}", x, y); + continue; + } + ctx.screen.framebuffer.set_pixel( x, y,