1786015955

This commit is contained in:
2026-08-06 13:32:35 +02:00
parent e281f48cc3
commit 53c3e4cf5c

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 y = (i / window_width as usize) as u32;
// if x >= window_width || y >= window_height {
// println!("Out of bounds {} {}", x, y);
// continue;
// } // }
dbg!(x, y, px); // let x = (i % window_width as usize) as u32;
// let y = (i / window_width as usize) as u32;
// ctx.screen.framebuffer.set_pixel( // // if x >= window_width || y >= window_height {
// x, // // println!("Out of bounds {} {}", x, y);
// y, // // continue;
// Color::from((px.r(), px.b(), px.b(), px.a())), // // }
// );
} // dbg!(x, y, px);
// // ctx.screen.framebuffer.set_pixel(
// // x,
// // y,
// // Color::from((px.r(), px.b(), px.b(), px.a())),
// // );
// }
ctx.screen.flush(); ctx.screen.flush();
}); });