public DnK()
{
Graphics = new GraphicsDeviceManager(this)
{
PreferredBackBufferWidth = Config.Resolution.X,
PreferredBackBufferHeight = Config.Resolution.Y
};
ScreenRectangle = new Rectangle(0, 0, Config.Resolution.X, Config.Resolution.Y);
IsMouseVisible = true;
Graphics.IsFullScreen = Config.FullScreen;
Graphics.SynchronizeWithVerticalRetrace = true;
// Pass through the FPS capping (60 FPS)
if (!Config.FpsCapping)
{
IsFixedTimeStep = false;
Graphics.SynchronizeWithVerticalRetrace = false;
}
Graphics.ApplyChanges();
Content.RootDirectory = "Content";
Pixel = new Texture2D(GraphicsDevice, 1, 1);
Pixel.SetData(new [] { Color.White });
}