Ejemplo n.º 1
0
        public void UpdateSettings(Game game)
        {
            var graphics = (GraphicsDeviceManager)(game.Services.GetService(typeof(GraphicsDeviceManager)));

            _fullScreenButton.Text = graphics.IsFullScreen ? "Yes" : "No";
            _resolutionButton.Text = graphics.PreferredBackBufferWidth + "x" + graphics.PreferredBackBufferHeight;
        }
Ejemplo n.º 2
0
 public void UpdateSettings(Game game)
 {
     var graphics = (GraphicsDeviceManager)(game.Services.GetService(typeof (GraphicsDeviceManager)));
     _fullScreenButton.Text = graphics.IsFullScreen ? "Yes" : "No";
     _resolutionButton.Text = graphics.PreferredBackBufferWidth + "x" + graphics.PreferredBackBufferHeight;
 }