From e233575ac11388b75208ddad443297628268cb9f Mon Sep 17 00:00:00 2001 From: Avii Date: Thu, 6 Aug 2026 13:35:11 +0200 Subject: [PATCH] 1786016111 --- src/trekstor.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/trekstor.rs b/src/trekstor.rs index ea2c3fc..9722721 100644 --- a/src/trekstor.rs +++ b/src/trekstor.rs @@ -43,10 +43,10 @@ impl Platform for Trekstor { let input = InputState::new(&screen); let mut ctx = Context { screen, input }; - // let mut buffer1 = [Rgba::from((0, 0, 0, 0)); 614400]; + let mut buffer1 = [Rgba::from((0, 0, 0, 0)); 614400]; - let window_width = ctx.screen.width(); - let window_height = ctx.screen.height(); + let window_width = ctx.screen.width() - 1; + let window_height = ctx.screen.height() - 1; loop { ctx.input.handle_event(); @@ -73,7 +73,7 @@ impl Platform for Trekstor { self.window.draw_if_needed(|renderer| { 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() { // if i > (window_width as usize - 1) { // break;