From bde6c81b8255989e56829aacbcbb90076e05d8a7 Mon Sep 17 00:00:00 2001 From: Avii Date: Thu, 6 Aug 2026 14:15:44 +0200 Subject: [PATCH] 1786018544 --- src/trekstor.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/trekstor.rs b/src/trekstor.rs index 8f773f8..ebad002 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, PhysicalSize, Rgb8Pixel}; +use slint::{LogicalPosition, PhysicalSize, Rgb8Pixel, WindowSize}; use self::input::InputState; use self::screen::Screen; @@ -46,8 +46,10 @@ impl Platform for Trekstor { let window_width = ctx.screen.width(); let window_height = ctx.screen.height(); - self.window - .set_size(PhysicalSize::new(window_width, window_height)); + self.window.set_size(WindowSize::Physical(PhysicalSize::new( + window_width, + window_height, + ))); loop { ctx.input.handle_event();