Am Freitag, 15. Februar 2008 04:00:20 schrieb Peter Dons Tychsen:
I think there is a general problem in swapchain->release. The swapchain should only change the resolution back to the original *if* the current resolution is still the same as the swapchain enforced. If someone else has intervened, it should let it be. This fixes the problem at hand, but would also fix other silly problems. Some could for example have called Release() while the "window" is not even visible (tabbed to desktop for example).
It sounds good and plausible, but I think a test case(preferably d3d8, d3d9 and ddraw) would make it even better.
Please review my patch and let med know if it is submittable. If you hate it, i will eat more wine-gums. :-)
I like them, but they make the teeth and everything in the mouth sticky due to all the sugar :-)