ok(mode_ex.Size==sizeof(D3DDISPLAYMODEEX),"size is %d instead of %d\n",mode_ex.Size,sizeof(D3DDISPLAYMODEEX));
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(startmode.dmDisplayOrientation==DMDO_180&&rotation==D3DDISPLAYROTATION_180,"rotation is %d instead of %d\n",rotation,startmode.dmDisplayOrientation);
/* return to the default mode */
pChangeDisplaySettingsExA(NULL,NULL,NULL,0,NULL);
trace("GetAdapterDisplayModeEx returned Width = %d,Height = %d, RefreshRate = %d, Format = %x, ScanLineOrdering = %x, rotation = %d\n",