wined3d: Get rid of the WINED3DDEVICE_CREATION_PARAMETERS typedef.
This commit is contained in:
parent
f41ea4fefe
commit
d1327bbefe
|
@ -440,7 +440,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetCreationParameters(IDirect3DDevice
|
||||||
|
|
||||||
wined3d_mutex_lock();
|
wined3d_mutex_lock();
|
||||||
hr = wined3d_device_get_creation_parameters(This->wined3d_device,
|
hr = wined3d_device_get_creation_parameters(This->wined3d_device,
|
||||||
(WINED3DDEVICE_CREATION_PARAMETERS *)pParameters);
|
(struct wined3d_device_creation_parameters *)pParameters);
|
||||||
wined3d_mutex_unlock();
|
wined3d_mutex_unlock();
|
||||||
|
|
||||||
return hr;
|
return hr;
|
||||||
|
|
|
@ -389,7 +389,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetCreationParameters(IDirect3DDevice
|
||||||
|
|
||||||
wined3d_mutex_lock();
|
wined3d_mutex_lock();
|
||||||
hr = wined3d_device_get_creation_parameters(This->wined3d_device,
|
hr = wined3d_device_get_creation_parameters(This->wined3d_device,
|
||||||
(WINED3DDEVICE_CREATION_PARAMETERS *)pParameters);
|
(struct wined3d_device_creation_parameters *)pParameters);
|
||||||
wined3d_mutex_unlock();
|
wined3d_mutex_unlock();
|
||||||
|
|
||||||
return hr;
|
return hr;
|
||||||
|
|
|
@ -140,7 +140,7 @@ static HRESULT STDMETHODCALLTYPE dxgi_device_GetParent(IWineDXGIDevice *iface, R
|
||||||
static HRESULT STDMETHODCALLTYPE dxgi_device_GetAdapter(IWineDXGIDevice *iface, IDXGIAdapter **adapter)
|
static HRESULT STDMETHODCALLTYPE dxgi_device_GetAdapter(IWineDXGIDevice *iface, IDXGIAdapter **adapter)
|
||||||
{
|
{
|
||||||
struct dxgi_device *This = impl_from_IWineDXGIDevice(iface);
|
struct dxgi_device *This = impl_from_IWineDXGIDevice(iface);
|
||||||
WINED3DDEVICE_CREATION_PARAMETERS create_parameters;
|
struct wined3d_device_creation_parameters create_parameters;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
TRACE("iface %p, adapter %p\n", iface, adapter);
|
TRACE("iface %p, adapter %p\n", iface, adapter);
|
||||||
|
@ -156,7 +156,7 @@ static HRESULT STDMETHODCALLTYPE dxgi_device_GetAdapter(IWineDXGIDevice *iface,
|
||||||
|
|
||||||
LeaveCriticalSection(&dxgi_cs);
|
LeaveCriticalSection(&dxgi_cs);
|
||||||
|
|
||||||
return IWineDXGIFactory_EnumAdapters(This->factory, create_parameters.AdapterOrdinal, adapter);
|
return IWineDXGIFactory_EnumAdapters(This->factory, create_parameters.adapter_idx, adapter);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT STDMETHODCALLTYPE dxgi_device_CreateSurface(IWineDXGIDevice *iface,
|
static HRESULT STDMETHODCALLTYPE dxgi_device_CreateSurface(IWineDXGIDevice *iface,
|
||||||
|
|
|
@ -1582,7 +1582,7 @@ void CDECL wined3d_device_set_multithreaded(struct wined3d_device *device)
|
||||||
TRACE("device %p.\n", device);
|
TRACE("device %p.\n", device);
|
||||||
|
|
||||||
/* For now just store the flag (needed in case of ddraw). */
|
/* For now just store the flag (needed in case of ddraw). */
|
||||||
device->createParms.BehaviorFlags |= WINED3DCREATE_MULTITHREADED;
|
device->create_parms.flags |= WINED3DCREATE_MULTITHREADED;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CDECL wined3d_device_set_display_mode(struct wined3d_device *device,
|
HRESULT CDECL wined3d_device_set_display_mode(struct wined3d_device *device,
|
||||||
|
@ -5629,7 +5629,7 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
|
||||||
{
|
{
|
||||||
if (swapchain->presentParms.Windowed)
|
if (swapchain->presentParms.Windowed)
|
||||||
{
|
{
|
||||||
HWND focus_window = device->createParms.hFocusWindow;
|
HWND focus_window = device->create_parms.focus_window;
|
||||||
if (!focus_window)
|
if (!focus_window)
|
||||||
focus_window = present_parameters->hDeviceWindow;
|
focus_window = present_parameters->hDeviceWindow;
|
||||||
if (FAILED(hr = wined3d_device_acquire_focus_window(device, focus_window)))
|
if (FAILED(hr = wined3d_device_acquire_focus_window(device, focus_window)))
|
||||||
|
@ -5711,11 +5711,11 @@ HRESULT CDECL wined3d_device_set_dialog_box_mode(struct wined3d_device *device,
|
||||||
|
|
||||||
|
|
||||||
HRESULT CDECL wined3d_device_get_creation_parameters(const struct wined3d_device *device,
|
HRESULT CDECL wined3d_device_get_creation_parameters(const struct wined3d_device *device,
|
||||||
WINED3DDEVICE_CREATION_PARAMETERS *parameters)
|
struct wined3d_device_creation_parameters *parameters)
|
||||||
{
|
{
|
||||||
TRACE("device %p, parameters %p.\n", device, parameters);
|
TRACE("device %p, parameters %p.\n", device, parameters);
|
||||||
|
|
||||||
*parameters = device->createParms;
|
*parameters = device->create_parms;
|
||||||
return WINED3D_OK;
|
return WINED3D_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5933,10 +5933,10 @@ HRESULT device_init(struct wined3d_device *device, struct wined3d *wined3d,
|
||||||
adapter->screen_format = mode.format_id;
|
adapter->screen_format = mode.format_id;
|
||||||
|
|
||||||
/* Save the creation parameters. */
|
/* Save the creation parameters. */
|
||||||
device->createParms.AdapterOrdinal = adapter_idx;
|
device->create_parms.adapter_idx = adapter_idx;
|
||||||
device->createParms.DeviceType = device_type;
|
device->create_parms.device_type = device_type;
|
||||||
device->createParms.hFocusWindow = focus_window;
|
device->create_parms.focus_window = focus_window;
|
||||||
device->createParms.BehaviorFlags = flags;
|
device->create_parms.flags = flags;
|
||||||
|
|
||||||
device->devType = device_type;
|
device->devType = device_type;
|
||||||
for (i = 0; i < PATCHMAP_SIZE; ++i) list_init(&device->patches[i]);
|
for (i = 0; i < PATCHMAP_SIZE; ++i) list_init(&device->patches[i]);
|
||||||
|
|
|
@ -864,7 +864,7 @@ static HRESULT swapchain_init(struct wined3d_swapchain *swapchain, WINED3DSURFTY
|
||||||
return WINED3DERR_INVALIDCALL;
|
return WINED3DERR_INVALIDCALL;
|
||||||
}
|
}
|
||||||
|
|
||||||
window = present_parameters->hDeviceWindow ? present_parameters->hDeviceWindow : device->createParms.hFocusWindow;
|
window = present_parameters->hDeviceWindow ? present_parameters->hDeviceWindow : device->create_parms.focus_window;
|
||||||
|
|
||||||
swapchain->device = device;
|
swapchain->device = device;
|
||||||
swapchain->parent = parent;
|
swapchain->parent = parent;
|
||||||
|
|
|
@ -1704,7 +1704,7 @@ struct wined3d_device
|
||||||
struct wined3d_stateblock *updateStateBlock;
|
struct wined3d_stateblock *updateStateBlock;
|
||||||
|
|
||||||
/* Internal use fields */
|
/* Internal use fields */
|
||||||
WINED3DDEVICE_CREATION_PARAMETERS createParms;
|
struct wined3d_device_creation_parameters create_parms;
|
||||||
WINED3DDEVTYPE devType;
|
WINED3DDEVTYPE devType;
|
||||||
HWND focus_window;
|
HWND focus_window;
|
||||||
|
|
||||||
|
|
|
@ -1684,13 +1684,13 @@ struct wined3d_vertex_element
|
||||||
BYTE usage_idx;
|
BYTE usage_idx;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct _WINED3DDEVICE_CREATION_PARAMETERS
|
struct wined3d_device_creation_parameters
|
||||||
{
|
{
|
||||||
UINT AdapterOrdinal;
|
UINT adapter_idx;
|
||||||
WINED3DDEVTYPE DeviceType;
|
WINED3DDEVTYPE device_type;
|
||||||
HWND hFocusWindow;
|
HWND focus_window;
|
||||||
DWORD BehaviorFlags;
|
DWORD flags;
|
||||||
} WINED3DDEVICE_CREATION_PARAMETERS;
|
};
|
||||||
|
|
||||||
typedef struct _WINED3DDEVINFO_BANDWIDTHTIMINGS
|
typedef struct _WINED3DDEVINFO_BANDWIDTHTIMINGS
|
||||||
{
|
{
|
||||||
|
@ -2203,7 +2203,7 @@ HRESULT __cdecl wined3d_device_get_clip_plane(const struct wined3d_device *devic
|
||||||
HRESULT __cdecl wined3d_device_get_clip_status(const struct wined3d_device *device,
|
HRESULT __cdecl wined3d_device_get_clip_status(const struct wined3d_device *device,
|
||||||
struct wined3d_clip_status *clip_status);
|
struct wined3d_clip_status *clip_status);
|
||||||
HRESULT __cdecl wined3d_device_get_creation_parameters(const struct wined3d_device *device,
|
HRESULT __cdecl wined3d_device_get_creation_parameters(const struct wined3d_device *device,
|
||||||
WINED3DDEVICE_CREATION_PARAMETERS *creation_parameters);
|
struct wined3d_device_creation_parameters *creation_parameters);
|
||||||
HRESULT __cdecl wined3d_device_get_depth_stencil(const struct wined3d_device *device,
|
HRESULT __cdecl wined3d_device_get_depth_stencil(const struct wined3d_device *device,
|
||||||
struct wined3d_surface **depth_stencil);
|
struct wined3d_surface **depth_stencil);
|
||||||
HRESULT __cdecl wined3d_device_get_device_caps(const struct wined3d_device *device, WINED3DCAPS *caps);
|
HRESULT __cdecl wined3d_device_get_device_caps(const struct wined3d_device *device, WINED3DCAPS *caps);
|
||||||
|
|
Loading…
Reference in New Issue