Am Donnerstag 22 Februar 2007 16:46 schrieb Stefan Dösinger:
That said, this is a Direct3D7 application, where the window setup is done BEFORE creating the Direct3D device(which calls Init3D in wined3d). So I gather that SetupFullscreenWindow should not be called during Init3D in the d3d7 case because the window and fullscreen setting are not changed. Setting window parameters there may cause signals to be sent to the application that cause crashes in the app. So I think the question is why SetupFullscreenWindow is called at all.
I have to correct myself, Init3D is not called when the application creates the Direct3DDevice7, it is called when a primary surface with 3D capatiblities is created(or any caps when the opengl ddraw renderer is selected).