Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making the window not resizable #184

Open
Zeneixe opened this issue Oct 18, 2017 · 2 comments
Open

Making the window not resizable #184

Zeneixe opened this issue Oct 18, 2017 · 2 comments

Comments

@Zeneixe
Copy link

Zeneixe commented Oct 18, 2017

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

@bvssvni
Copy link
Member

bvssvni commented Oct 18, 2017

Add use glutin_window::GlutinWindow as Window;.

@Zeneixe
Copy link
Author

Zeneixe commented Oct 18, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants