http://bugs.winehq.org/show_bug.cgi?id=32951
--- Comment #13 from Henri Verbeet hverbeet@gmail.com 2013-02-14 17:25:13 CST --- Yeah, though restoring the resolution is done by the swapchain on cleanup. We can probably get away with just calling ddraw_destroy_swapchain(), but I'm not entirely sure if that's going to be much better here, since at the very least it's going to destroy the GL context as well. The original idea behind that cleanup code in DllMain was probably more about detecting reference counting problems inside ddraw itself, but the quality of the average ddraw application makes it not really work out that way.