On Nov 6, 2012, at 3:45, Henri Verbeet <hverbeet@gmail.com> wrote:

Yeah, we'll want a similar test for d3d8.

Okay, I'll write that as soon as the d3d9 test is accepted.


You're probably looking for AdjustWindowRect() and SetWindowPos().

Thank you, I didn't know about AdjustWindowRect(), but why SetWindowPos()? Is this preferred over MoveWindow() for any reason?


Testing the viewport dimensions is useful, but it probably wouldn't
hurt to check the swapchain's presentation parameters and the
backbuffer's surface desc as well.

Good catch, I forgot to copy the relevant code for that.

Thanks,
Sam