Re: Stretch my scene with my new window's size

From: Rich [Microsoft Direct3D MVP] (
Date: 02/19/04

Date: Thu, 19 Feb 2004 08:36:19 -0800

[Please do not mail me a copy of your followup] (NeoAsimov) spake the secret code
<> thusly:

>// Get the new dimensions of the display's render target area.
>float aspectWidth = (float)mDevice.DisplayMode.Width;
>float aspectHeight = (float)mDevice.DisplayMode.Height;

...assuming you're in exclusive mode and the size of the render target
is the size of the display mode, this is correct.

>I already test this before sending this post and this don't seem to work either.

Then you must be doing something wrong. I've done this in my code and
it works properly.

"The Direct3D Graphics Pipeline"-- code samples, sample chapter, FAQ:
	    Pilgrimage: Utah's annual demoparty