Piston-Tutorials icon indicating copy to clipboard operation
Piston-Tutorials copied to clipboard

Making the window not resizable

Open Zeneixe opened this issue 8 years ago • 2 comments

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...

Zeneixe avatar Oct 18 '17 12:10 Zeneixe

Add use glutin_window::GlutinWindow as Window;.

bvssvni avatar Oct 18 '17 15:10 bvssvni

@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)

Zeneixe avatar Oct 18 '17 15:10 Zeneixe