1786018544
This commit is contained in:
@@ -4,7 +4,7 @@ use evdev::KeyCode;
|
|||||||
use linfb::shape::Color;
|
use linfb::shape::Color;
|
||||||
use slint::platform::software_renderer::{MinimalSoftwareWindow, RepaintBufferType, Rgb565Pixel};
|
use slint::platform::software_renderer::{MinimalSoftwareWindow, RepaintBufferType, Rgb565Pixel};
|
||||||
use slint::platform::{Platform, WindowEvent};
|
use slint::platform::{Platform, WindowEvent};
|
||||||
use slint::{LogicalPosition, PhysicalSize, Rgb8Pixel};
|
use slint::{LogicalPosition, PhysicalSize, Rgb8Pixel, WindowSize};
|
||||||
|
|
||||||
use self::input::InputState;
|
use self::input::InputState;
|
||||||
use self::screen::Screen;
|
use self::screen::Screen;
|
||||||
@@ -46,8 +46,10 @@ impl Platform for Trekstor {
|
|||||||
let window_width = ctx.screen.width();
|
let window_width = ctx.screen.width();
|
||||||
let window_height = ctx.screen.height();
|
let window_height = ctx.screen.height();
|
||||||
|
|
||||||
self.window
|
self.window.set_size(WindowSize::Physical(PhysicalSize::new(
|
||||||
.set_size(PhysicalSize::new(window_width, window_height));
|
window_width,
|
||||||
|
window_height,
|
||||||
|
)));
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
ctx.input.handle_event();
|
ctx.input.handle_event();
|
||||||
|
|||||||
Reference in New Issue
Block a user