Commit 0833a639 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

ddraw: Use wined3d_get_adapter_display_mode() in ddraw7_GetFourCCCodes().

parent e109754b
......@@ -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;
......
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