public TSScreen(GraphicsDeviceManager graphics) { _graphics = graphics; _controlManager = new TSControlManager(); if (graphics.IsFullScreen) { _width = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width; _height = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height; } else { _width = graphics.PreferredBackBufferWidth; _height = graphics.PreferredBackBufferHeight; } _controlManager.ParentPositionOnScreen = new Vector2(0, 0); _controlManager.ParentWidth = _width; _controlManager.ParentHeight = _height; }
public TSLayout() { _controlManager = new TSControlManager(); }