1786016158

This commit is contained in:
2026-08-06 13:35:58 +02:00
parent e233575ac1
commit d271e102b4

View File

@@ -74,27 +74,27 @@ impl Platform for Trekstor {
self.window.draw_if_needed(|renderer| { self.window.draw_if_needed(|renderer| {
dbg!("Rendering"); dbg!("Rendering");
renderer.render(&mut buffer1, window_width as usize); renderer.render(&mut buffer1, window_width as usize);
// for (i, px) in buffer1.into_iter().enumerate() { for (i, px) in buffer1.into_iter().enumerate() {
// if i > (window_width as usize - 1) { // if i > (window_width as usize - 1) {
// break; // break;
// } // }
// let x = (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; // let y = (i / window_width as usize) as u32;
// // if x >= window_width || y >= window_height { // // if x >= window_width || y >= window_height {
// // println!("Out of bounds {} {}", x, y); // // println!("Out of bounds {} {}", x, y);
// // continue; // // continue;
// // } // // }
// dbg!(x, y, px); // dbg!(x, y, px);
// // ctx.screen.framebuffer.set_pixel( // // ctx.screen.framebuffer.set_pixel(
// // x, // // x,
// // y, // // y,
// // Color::from((px.r(), px.b(), px.b(), px.a())), // // Color::from((px.r(), px.b(), px.b(), px.a())),
// // ); // // );
// } }
ctx.screen.flush(); ctx.screen.flush();
}); });