From 53c3e4cf5ca8ecb2c65490fb9f37e0a2c9e3da4e Mon Sep 17 00:00:00 2001 From: Avii Date: Thu, 6 Aug 2026 13:32:35 +0200 Subject: [PATCH] 1786015955 --- src/trekstor.rs | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/trekstor.rs b/src/trekstor.rs index 9ebe626..ea2c3fc 100644 --- a/src/trekstor.rs +++ b/src/trekstor.rs @@ -74,27 +74,27 @@ impl Platform for Trekstor { self.window.draw_if_needed(|renderer| { dbg!("Rendering"); // renderer.render(&mut buffer1, window_width as usize); - for (i, px) in buffer1.into_iter().enumerate() { - if i > (window_width as usize - 1) { - break; - } + // for (i, px) in buffer1.into_iter().enumerate() { + // if i > (window_width as usize - 1) { + // break; + // } - let x = (i % window_width as usize) as u32; - let y = (i / window_width as usize) as u32; + // let x = (i % window_width as usize) as u32; + // let y = (i / window_width as usize) as u32; - // if x >= window_width || y >= window_height { - // println!("Out of bounds {} {}", x, y); - // continue; - // } + // // if x >= window_width || y >= window_height { + // // println!("Out of bounds {} {}", x, y); + // // continue; + // // } - dbg!(x, y, px); + // dbg!(x, y, px); - // ctx.screen.framebuffer.set_pixel( - // x, - // y, - // Color::from((px.r(), px.b(), px.b(), px.a())), - // ); - } + // // ctx.screen.framebuffer.set_pixel( + // // x, + // // y, + // // Color::from((px.r(), px.b(), px.b(), px.a())), + // // ); + // } ctx.screen.flush(); });