From 64749c31cef50c89fd54166993499d65befb6176 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 5 Feb 2020 22:51:47 +0100 Subject: [PATCH] make MlemGame.cs use some more sensible defaults --- MLEM.Startup/MlemGame.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/MLEM.Startup/MlemGame.cs b/MLEM.Startup/MlemGame.cs index fc4ef53..eaac895 100644 --- a/MLEM.Startup/MlemGame.cs +++ b/MLEM.Startup/MlemGame.cs @@ -21,15 +21,16 @@ namespace MLEM.Startup { public TimeCallback OnUpdate; public TimeCallback OnDraw; - public MlemGame(int windowWidth = 1280, int windowHeight = 720, bool vsync = false, bool allowResizing = true, string contentDir = "Content") { + public MlemGame(int windowWidth = 1280, int windowHeight = 720) { instance = this; + this.GraphicsDeviceManager = new GraphicsDeviceManager(this) { PreferredBackBufferWidth = windowWidth, PreferredBackBufferHeight = windowHeight, - SynchronizeWithVerticalRetrace = vsync + HardwareModeSwitch = false }; - this.Content.RootDirectory = contentDir; - this.Window.AllowUserResizing = allowResizing; + this.Window.AllowUserResizing = true; + this.Content.RootDirectory = "Content"; } protected override void LoadContent() {