Am 11.06.2015 um 18:40 schrieb Aaryaman Vasishta jem456.vasishta@gmail.com:
- memcpy(&driver, &IID_IDirect3DRGBDevice, sizeof(GUID));
I think an assignment should do the job. That was just to maintain consistency with the existing tests, I could still use an assignment if you want to.
Yes, please use assignments. Existing bad code is no excuse to write new bad code :-) .
There's no need to try to set the display mode to 8. Also testing if changing the mode works is outside the scope of this test. What's interesting is that the pixel format of the primary surface of a new device after changing the mode. By chaning the mode you mean the dimentions/bpp or both?
Well, you're changing the mode, and then checking if the mode change applied. That made sense for your experiments with Windows 8 because SetDisplayMode didn't behave as intended. It does not make sense for an upstream d3drm test. For d3drm just check how the render target format changes when the device is created when a different screen mode is active.
Stefan