ok(mode_ex.Size==sizeof(D3DDISPLAYMODEEX),"size is %d\n",mode_ex.Size);
todo_wineok(mode_ex.Width==mode.Width,"width is %d instead of %d\n",mode_ex.Width,mode.Width);
todo_wineok(mode_ex.Height==mode.Height,"height is %d instead of %d\n",mode_ex.Height,mode.Height);
todo_wineok(mode_ex.RefreshRate==mode.RefreshRate,"RefreshRate is %d instead of %d\n",mode_ex.RefreshRate,mode.RefreshRate);
todo_wineok(mode_ex.Format==mode.Format,"format is %x instead of %x\n",mode_ex.Format,mode.Format);
/* don't know yet how to test for ScanLineOrdering, just testing that it is set to a value by GetAdapterDisplayModeEx*/
todo_wineok(mode_ex.ScanLineOrdering!=0,"ScanLineOrdering returned 0\n");
/* check that orientation is returned correctly by GetAdapterDisplayModeEx and EnumDisplaySettingsEx*/
todo_wineok(S2(U1(startmode)).dmDisplayOrientation==DMDO_180&&rotation==D3DDISPLAYROTATION_180,"rotation is %d instead of %d\n",rotation,S2(U1(startmode)).dmDisplayOrientation);
ok(mode_ex.Width==mode.Width,"width is %d instead of %d\n",mode_ex.Width,mode.Width);
ok(mode_ex.Height==mode.Height,"height is %d instead of %d\n",mode_ex.Height,mode.Height);
ok(mode_ex.RefreshRate==mode.RefreshRate,"RefreshRate is %d instead of %d\n",
mode_ex.RefreshRate,mode.RefreshRate);
ok(mode_ex.Format==mode.Format,"format is %x instead of %x\n",mode_ex.Format,mode.Format);
/* Don't know yet how to test for ScanLineOrdering, just testing that it
* is set to a value by GetAdapterDisplayModeEx(). */
ok(mode_ex.ScanLineOrdering!=0,"ScanLineOrdering returned 0\n");
/* Check that orientation is returned correctly by GetAdapterDisplayModeEx