Axiom.RenderSystems.Xna.XnaRenderWindow.Resize C# (CSharp) Method

Resize() public method

public Resize ( int width, int height ) : void
width int
height int
return void
		public override void Resize( int width, int height )
		{
			// CMH 4/24/2004 - Start
			width = width < 10 ? 10 : width;
			height = height < 10 ? 10 : height;
			this.Height = height;
			this.Width = width;

			if ( !IsFullScreen )
			{
				XFG.PresentationParameters p = new XFG.PresentationParameters();// (_device.PresentationParameters);//swapchain
				p.BackBufferHeight = height;
				p.BackBufferWidth = width;
				//_swapChain.Dispose();
				//_swapChain = new XFG.SwapChain( _device, p );
				/*_stencilBuffer.Dispose();
				_stencilBuffer = new XFG.DepthStencilBuffer(
					_device,
					width, height,
					_device.PresentationParameters.AutoDepthStencilFormat,
					_device.PresentationParameters.MultiSampleType,
					_device.PresentationParameters.MultiSampleQuality
					);*/

				// customAttributes[ "SwapChain" ] = _swapChain;
			}
			// CMH - End
		}