1786016158
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user