Piston-Tutorials
Piston-Tutorials copied to clipboard
Making the window not resizable
How's this code not working?
let mut window: Window = WindowSettings::new(
"spinning-square",
[200, 200]
)
.opengl(opengl)
.exit_on_esc(true)
.resizable(false)
.build()
.unwrap();
I added .resizable(false) but the window is still resizable...
Add use glutin_window::GlutinWindow as Window;.
@bvssvni that code is already there:
https://github.com/PistonDevelopers/Piston-Tutorials/blob/master/getting-started/src/main.rs#L9
Window resizing is still enabled, with my call to .resizable(false)