1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 04:53:29 +01:00

make MlemGame.cs use some more sensible defaults

This commit is contained in:
Ellpeck 2020-02-05 22:51:47 +01:00
parent 3f36093957
commit 64749c31ce

View file

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