Commit aed85222 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Rename the wined3d_adapter "num" field to "ordinal".

This makes it consistent with dxgi_adapter.
parent 8a833a2d
...@@ -1110,7 +1110,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateSwapChain(IWineD3DDevice *iface, ...@@ -1110,7 +1110,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateSwapChain(IWineD3DDevice *iface,
} }
/* Get info on the current display setup */ /* Get info on the current display setup */
IWineD3D_GetAdapterDisplayMode(This->wineD3D, This->adapter->num, &Mode); IWineD3D_GetAdapterDisplayMode(This->wineD3D, This->adapter->ordinal, &Mode);
object->orig_width = Mode.Width; object->orig_width = Mode.Width;
object->orig_height = Mode.Height; object->orig_height = Mode.Height;
object->orig_fmt = Mode.Format; object->orig_fmt = Mode.Format;
...@@ -6615,10 +6615,10 @@ static BOOL is_display_mode_supported(IWineD3DDeviceImpl *This, const WINED3DPRE ...@@ -6615,10 +6615,10 @@ static BOOL is_display_mode_supported(IWineD3DDeviceImpl *This, const WINED3DPRE
if(!pp->BackBufferWidth) return TRUE; if(!pp->BackBufferWidth) return TRUE;
if(!pp->BackBufferHeight) return TRUE; if(!pp->BackBufferHeight) return TRUE;
count = IWineD3D_GetAdapterModeCount(This->wineD3D, This->adapter->num, WINED3DFMT_UNKNOWN); count = IWineD3D_GetAdapterModeCount(This->wineD3D, This->adapter->ordinal, WINED3DFMT_UNKNOWN);
for(i = 0; i < count; i++) { for(i = 0; i < count; i++) {
memset(&m, 0, sizeof(m)); memset(&m, 0, sizeof(m));
hr = IWineD3D_EnumAdapterModes(This->wineD3D, This->adapter->num, WINED3DFMT_UNKNOWN, i, &m); hr = IWineD3D_EnumAdapterModes(This->wineD3D, This->adapter->ordinal, WINED3DFMT_UNKNOWN, i, &m);
if(FAILED(hr)) { if(FAILED(hr)) {
ERR("EnumAdapterModes failed\n"); ERR("EnumAdapterModes failed\n");
} }
......
...@@ -4676,7 +4676,7 @@ BOOL InitAdapters(IWineD3DImpl *This) ...@@ -4676,7 +4676,7 @@ BOOL InitAdapters(IWineD3DImpl *This)
HDC hdc; HDC hdc;
TRACE("Initializing default adapter\n"); TRACE("Initializing default adapter\n");
adapter->num = 0; adapter->ordinal = 0;
adapter->monitorPoint.x = -1; adapter->monitorPoint.x = -1;
adapter->monitorPoint.y = -1; adapter->monitorPoint.y = -1;
...@@ -4884,7 +4884,7 @@ BOOL InitAdapters(IWineD3DImpl *This) ...@@ -4884,7 +4884,7 @@ BOOL InitAdapters(IWineD3DImpl *This)
nogl_adapter: nogl_adapter:
/* Initialize an adapter for ddraw-only memory counting */ /* Initialize an adapter for ddraw-only memory counting */
memset(This->adapters, 0, sizeof(This->adapters)); memset(This->adapters, 0, sizeof(This->adapters));
This->adapters[0].num = 0; This->adapters[0].ordinal = 0;
This->adapters[0].opengl = FALSE; This->adapters[0].opengl = FALSE;
This->adapters[0].monitorPoint.x = -1; This->adapters[0].monitorPoint.x = -1;
This->adapters[0].monitorPoint.y = -1; This->adapters[0].monitorPoint.y = -1;
......
...@@ -139,7 +139,7 @@ HRESULT WINAPI IWineD3DBaseSwapChainImpl_GetDisplayMode(IWineD3DSwapChain *iface ...@@ -139,7 +139,7 @@ HRESULT WINAPI IWineD3DBaseSwapChainImpl_GetDisplayMode(IWineD3DSwapChain *iface
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%p): Calling GetAdapterDisplayMode\n", This, pMode); TRACE("(%p)->(%p): Calling GetAdapterDisplayMode\n", This, pMode);
hr = IWineD3D_GetAdapterDisplayMode(This->wineD3DDevice->wineD3D, This->wineD3DDevice->adapter->num, pMode); hr = IWineD3D_GetAdapterDisplayMode(This->wineD3DDevice->wineD3D, This->wineD3DDevice->adapter->ordinal, pMode);
TRACE("(%p) : returning w(%d) h(%d) rr(%d) fmt(%u,%s)\n", This, pMode->Width, pMode->Height, pMode->RefreshRate, TRACE("(%p) : returning w(%d) h(%d) rr(%d) fmt(%u,%s)\n", This, pMode->Width, pMode->Height, pMode->RefreshRate,
pMode->Format, debug_d3dformat(pMode->Format)); pMode->Format, debug_d3dformat(pMode->Format));
......
...@@ -1324,7 +1324,7 @@ struct wined3d_driver_info ...@@ -1324,7 +1324,7 @@ struct wined3d_driver_info
/* The adapter structure */ /* The adapter structure */
struct wined3d_adapter struct wined3d_adapter
{ {
UINT num; UINT ordinal;
BOOL opengl; BOOL opengl;
POINT monitorPoint; POINT monitorPoint;
struct wined3d_gl_info gl_info; struct wined3d_gl_info gl_info;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment