Skip to content

Commit 7b5ab48

Browse files
committed
Properly set the size of the slint window
Fix template not working since Slint 1.4 Fixes #4 that regressed in commit e0efbc49bd11072a05bef3b91db91879b5513231
1 parent add2f03 commit 7b5ab48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ fn main() -> ! {
9494

9595
// -------- Setup the Slint backend --------
9696
let window = slint::platform::software_renderer::MinimalSoftwareWindow::new(Default::default());
97+
window.set_size(slint::PhysicalSize::new(320, 240));
9798
slint::platform::set_platform(alloc::boxed::Box::new(MyPlatform {
9899
window: window.clone(),
99100
timer,

0 commit comments

Comments
 (0)