Ack, after thinking about it and talking with people on IRC, I think I did the wrong thing. New patch attached that just copies the parameters one-by-one to the passed-in struct. Both methods work, though, so this probably needs to be tested on Windows.
In any case, this one is probably safest for now. -Al Tobey
On 1/14/06, Al Tobey tobert@gmail.com wrote:
I'd just post to wine-patches, but I think this needs another set of eyes. According to MSDN, this just sets a pointer to the creation parameters. The attached patch makes this function work, but I'm not sure if returning a pointer to the original parameters is the right approach or if they should be copied first.
This patch makes a bunch of the Ogre3d demos work, which are great for testing since you can run the same demo in OpenGL, D3D9, and D3D7 modes.
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_c/...
http://www.ogre3d.org/index.php?option=com_remository&Itemid=57&func... http://easynews.dl.sourceforge.net/sourceforge/ogre/OgreDemos-1.0.4.zip
I'm currently playing with compiling Ogre3d against winelib and finding it's shaking out a bunch of missing stuff in d3d9 - patches may follow.
-Al Tobey