Skip to content

Commit

Permalink
Properly set the size of the slint window
Browse files Browse the repository at this point in the history
Fix template not working since Slint 1.4
Fixes #4
that regressed in commit e0efbc49bd11072a05bef3b91db91879b5513231
  • Loading branch information
ogoffart committed Sep 16, 2024
1 parent add2f03 commit 7b5ab48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ fn main() -> ! {

// -------- Setup the Slint backend --------
let window = slint::platform::software_renderer::MinimalSoftwareWindow::new(Default::default());
window.set_size(slint::PhysicalSize::new(320, 240));
slint::platform::set_platform(alloc::boxed::Box::new(MyPlatform {
window: window.clone(),
timer,
Expand Down

0 comments on commit 7b5ab48

Please sign in to comment.