ddraw: Use wined3d_get_adapter_display_mode() in ddraw7_GetFourCCCodes().

This commit is contained in:
Henri Verbeet 2012-06-20 17:45:17 +02:00 committed by Alexandre Julliard
parent e109754b1e
commit 0833a639a9
1 changed files with 5 additions and 1 deletions

View File

@ -1513,7 +1513,11 @@ static HRESULT WINAPI ddraw7_GetFourCCCodes(IDirectDraw7 *iface, DWORD *NumCodes
TRACE("iface %p, codes_count %p, codes %p.\n", iface, NumCodes, Codes);
wined3d_device_get_display_mode(ddraw->wined3d_device, 0, &mode);
if (FAILED(hr = wined3d_get_adapter_display_mode(ddraw->wined3d, WINED3DADAPTER_DEFAULT, &mode)))
{
ERR("Failed to get display mode, hr %#x.\n", hr);
return hr;
}
outsize = NumCodes && Codes ? *NumCodes : 0;