Beispiel #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();
 }
Beispiel #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();
 }