mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
[d3d9] Ensure D3DDISPLAYMODEEX we use to call the Ex funcs has its size set correctly
This commit is contained in:
parent
61b6f8f297
commit
9541aef0b8
@ -76,7 +76,8 @@ namespace dxvk {
|
||||
|
||||
HRESULT STDMETHODCALLTYPE D3D9InterfaceEx::GetAdapterDisplayMode(UINT Adapter, D3DDISPLAYMODE* pMode) {
|
||||
if (auto* adapter = GetAdapter(Adapter)) {
|
||||
D3DDISPLAYMODEEX modeEx;
|
||||
D3DDISPLAYMODEEX modeEx = { };
|
||||
modeEx.Size = sizeof(D3DDISPLAYMODEEX);
|
||||
HRESULT hr = adapter->GetAdapterDisplayModeEx(&modeEx, nullptr);
|
||||
|
||||
if (FAILED(hr))
|
||||
@ -224,7 +225,8 @@ namespace dxvk {
|
||||
filter.ScanLineOrdering = D3DSCANLINEORDERING_PROGRESSIVE;
|
||||
filter.Size = sizeof(D3DDISPLAYMODEFILTER);
|
||||
|
||||
D3DDISPLAYMODEEX modeEx;
|
||||
D3DDISPLAYMODEEX modeEx = { };
|
||||
modeEx.Size = sizeof(D3DDISPLAYMODEEX);
|
||||
HRESULT hr = this->EnumAdapterModesEx(Adapter, &filter, Mode, &modeEx);
|
||||
|
||||
if (FAILED(hr))
|
||||
|
Loading…
x
Reference in New Issue
Block a user