diff --git a/src/trekstor.rs b/src/trekstor.rs index fbb8b1c..0e73d5e 100644 --- a/src/trekstor.rs +++ b/src/trekstor.rs @@ -43,7 +43,7 @@ impl Platform for Trekstor { let mut buffer1 = [Rgb565Pixel(0); 512 * 512]; - let window_width = 512; + let window_width = ctx.screen.width(); // let window_height = ctx.screen.height() - 1; loop {