public BaseGame(ImageStateData imageStateData, ToolboxLayoutDefinition toolboxLayoutDefinition, int deviceScale)
{
this.ImageStateData = imageStateData;
this.ToolboxLayoutDefinition = toolboxLayoutDefinition;
this.DeviceScale = deviceScale;
this.GraphicsDeviceManager = new GraphicsDeviceManager(this);
this.GraphicsDeviceManager.IsFullScreen = true;
if (imageStateData.Width > imageStateData.Height)
{
this.GraphicsDeviceManager.SupportedOrientations =
DisplayOrientation.LandscapeLeft | DisplayOrientation.LandscapeRight;
}
else
{
this.GraphicsDeviceManager.SupportedOrientations =
DisplayOrientation.Portrait | DisplayOrientation.PortraitUpsideDown;
}
this.Content.RootDirectory = "Content";
}