From 339ef6c2522dafaedce036f72172176bbf4850c2 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 21 Jun 2012 19:35:34 +0200 Subject: [PATCH] ddraw: Use wined3d_get_adapter_display_mode() in d3d_device7_EnumTextureFormats(). --- dlls/ddraw/device.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c index c79c6aaa9b1..aa16757473b 100644 --- a/dlls/ddraw/device.c +++ b/dlls/ddraw/device.c @@ -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");