Am 27.07.2010 um 00:19 schrieb Johan Gill:
This patch fixes the long-standing regression bug 17215.
Enjoy, and provide feedback if you don't ;) <17215.txt>
Usually wined3d does the window setup. I recommend to take a look at WineD3D's AcquireFocusWindow and SetDisplayMode
The problem is somewhat more complicated though - there's swapchain_setup_fullscreen_window and swapchain_restore_fullscreen_window, but wined3ddevice::Setdisplaymode doesn't call the swapchain(because there may not be one if ddraw hasn't created the primary surface yet).