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