ddraw: Use wined3d_get_adapter_display_mode() in d3d_device7_EnumTextureFormats().

This commit is contained in:
Henri Verbeet 2012-06-21 19:35:34 +02:00 committed by Alexandre Julliard
parent bf876d2a7c
commit 339ef6c252
1 changed files with 1 additions and 2 deletions

View File

@ -1068,8 +1068,7 @@ static HRESULT d3d_device7_EnumTextureFormats(IDirect3DDevice7 *iface,
wined3d_mutex_lock();
memset(&mode, 0, sizeof(mode));
hr = wined3d_device_get_display_mode(device->ddraw->wined3d_device, 0, &mode);
if (FAILED(hr))
if (FAILED(hr = wined3d_get_adapter_display_mode(device->ddraw->wined3d, WINED3DADAPTER_DEFAULT, &mode)))
{
wined3d_mutex_unlock();
WARN("Cannot get the current adapter format\n");