mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 05:10:03 -04:00
DPI for everyone (#548)
This commit is contained in:
committed by
GitHub
parent
f083dae328
commit
1b74822cfc
@@ -7,7 +7,7 @@ fn main() {
|
||||
|
||||
let window = winit::WindowBuilder::new()
|
||||
.with_title("Hit space to toggle resizability.")
|
||||
.with_dimensions(400, 200)
|
||||
.with_dimensions((400, 200).into())
|
||||
.with_resizable(resizable)
|
||||
.build(&events_loop)
|
||||
.unwrap();
|
||||
|
||||
Reference in New Issue
Block a user