예제 #1
0
 private static void ResetScreenToDefaultDimensions(GraphicsDeviceManager graphics)
 {
     Camera.Reset(DefaultWindowWidth, DefaultWindowHeight);
     StaticCamera.Reset(DefaultWindowWidth, DefaultWindowHeight);
     graphics.PreferredBackBufferHeight = DefaultWindowHeight;
     graphics.PreferredBackBufferWidth  = DefaultWindowWidth;
     graphics.ToggleFullScreen();
     graphics.ApplyChanges();
 }
예제 #2
0
 private static void ActivateFullScreenMode(GraphicsDeviceManager graphics)
 {
     Camera.Reset(DisplayWidth, DisplayHeight);
     StaticCamera.Reset(DisplayWidth, DisplayHeight);
     graphics.PreferredBackBufferHeight = DisplayHeight;
     graphics.PreferredBackBufferWidth  = DisplayWidth;
     graphics.ToggleFullScreen();
     graphics.ApplyChanges();
 }