Exemplo n.º 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();
 }
Exemplo n.º 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();
 }