piston_window
piston_window copied to clipboard
resizable for window has no effect
Trying to apply resizable to window settings, but the window is still resizable after that. Confirmed on MacOS and Windows 7
extern crate piston_window;
use piston_window::*;
fn main() {
let mut window: PistonWindow = WindowSettings::new("Piston!", [300, 300])
.resizable(false)
.build()
.unwrap();
while let Some(e) = window.next() {}
}
Notice to myself:
- [x] https://github.com/PistonDevelopers/sdl2_window/issues/233
- [ ] https://github.com/PistonDevelopers/glutin_window/issues/92
- [x] https://github.com/PistonDevelopers/glfw_window/issues/133
Having the same problem here on Win7 and PistonWindow.
Use PistonWindow<Sdl2Window> or PistonWindow<GlfwWindow>. Glutin does not support resizable setting on OSX.
Perhaps one should call for an enhancement?
@sumproxy I opened https://github.com/tomaka/glutin/issues/812
@bvssvni, thank you!
How about PistonWindow<GlutinWindow> on Windows 7? Will this be supported?
@VelocityRa PistonWindow is PistonWindow<GlutinWindow> by default.
Ah ok. What about my question? You said it's not supported on OSX, but I'm having the same problem on Windows.
@VelocityRa It will be fixed in glutin_window when Glutin gets the OSX issue fixed. For now, use Sdl2 or Glfw.
@bvssvni Gotcha, thanks.
Hi, bumping the issue with what I've found so far:
-
winit#89 was merged and released in 0.5.6
-
This particular comment indicates it should work in Windows
-
My project's Cargo.lock says it's using the following versions:
winit 0.5.10glutin 0.7.3pistoncore-glutin_window 0.35.0piston_window 0.63.0
Currently when using resizable(false), my window is still resizable (this is on Windows 10).
Edit: Here is a fix: https://github.com/PistonDevelopers/glutin_window/pull/110
I have the same a problem. my system is Windows 10 resizeable(false) is still doesn't work