private void InitGraphicsMode() { DisplayOutputSettings.DisplayMode = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode; GraphicsSettings.SetPreferredBackBuffer(DisplayOutputSettings.ScreenWidth, DisplayOutputSettings.ScreenHeight); GraphicsSettings.SetFullscreen(DisplayOutputSettings.isFullScreen); GraphicsSettings.ApplyChanges(); }