From f81a31c8212e9af89ca74d77247709d27799e283 Mon Sep 17 00:00:00 2001 From: Benjamin Loison Date: Sun, 23 Oct 2022 02:40:29 +0200 Subject: [PATCH] Make the window maximized by default --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 0c75ea1..bfcd642 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,7 +39,9 @@ const BIOMES: [&str; BIOMES_NUMBER] = [ fn main() { // building the display, ie. the main object 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 display = glium::Display::new(wb, cb, &event_loop).unwrap();