ddraw: Use wined3d_get_adapter_display_mode() in ddraw7_GetFourCCCodes().
This commit is contained in:
parent
e109754b1e
commit
0833a639a9
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue