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; }
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; }