diff --git a/src/trekstor.rs b/src/trekstor.rs index 0cb434a..8f773f8 100644 --- a/src/trekstor.rs +++ b/src/trekstor.rs @@ -4,7 +4,7 @@ use evdev::KeyCode; use linfb::shape::Color; use slint::platform::software_renderer::{MinimalSoftwareWindow, RepaintBufferType, Rgb565Pixel}; use slint::platform::{Platform, WindowEvent}; -use slint::{LogicalPosition, Rgb8Pixel}; +use slint::{LogicalPosition, PhysicalSize, Rgb8Pixel}; use self::input::InputState; use self::screen::Screen; @@ -44,7 +44,10 @@ impl Platform for Trekstor { let mut buffer1 = [Rgb565Pixel(0); 512 * 512]; let window_width = ctx.screen.width(); - // let window_height = ctx.screen.height() - 1; + let window_height = ctx.screen.height(); + + self.window + .set_size(PhysicalSize::new(window_width, window_height)); loop { ctx.input.handle_event();