Make the window maximized by default

This commit is contained in:
2022-10-23 02:40:29 +02:00
parent e22f1f0e83
commit f81a31c821
+3 -1
View File
@@ -39,7 +39,9 @@ const BIOMES: [&str; BIOMES_NUMBER] = [
fn main() { fn main() {
// building the display, ie. the main object // building the display, ie. the main object
let event_loop = glutin::event_loop::EventLoop::new(); let event_loop = glutin::event_loop::EventLoop::new();
let wb = glutin::window::WindowBuilder::new().with_title("LemnosLife"); let wb = glutin::window::WindowBuilder::new()
.with_title("LemnosLife")
.with_maximized(true);
let cb = glutin::ContextBuilder::new().with_depth_buffer(24); let cb = glutin::ContextBuilder::new().with_depth_buffer(24);
let display = glium::Display::new(wb, cb, &event_loop).unwrap(); let display = glium::Display::new(wb, cb, &event_loop).unwrap();