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| {
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();
});