http://bugs.winehq.org/show_bug.cgi?id=18640
--- Comment #15 from Henri Verbeet hverbeet@gmail.com 2010-07-10 05:48:15 --- (In reply to comment #14)
Created an attachment (id=29494)
--> (http://bugs.winehq.org/attachment.cgi?id=29494) [details]
patch
I added some tests for GetAdapterDisplayModeEx yesterday. The attached patch makes most tests pass, but the format returned by GetAdapterDisplayMode doesn't match the one returned by GetAdapterDisplayModeEx. I'll investigate further in a few days
You'd need to do "mode->Format = d3dformat_from_wined3dformat(m.Format)" to convert the wined3d format to something that makes sense to d3d9.
However, the way this should be implemented is that IWineD3DImpl_GetAdapterDisplayMode() should be extended to return rotation and scanline ordering, then implement IDirect3D9ExImpl_GetAdapterDisplayModeEx() on top of IWineD3DImpl_GetAdapterDisplayMode(), and IDirect3D9Impl_GetAdapterDisplayMode() on top of IDirect3D9ExImpl_GetAdapterDisplayModeEx().