Skip to content

Commit

Permalink
Move WndProc hooks to Direct3D9
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed Dec 5, 2024
1 parent fe86be1 commit 0ea9f66
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion Dllmain/BuildNo.rc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define BUILD_NUMBER 7357
#define BUILD_NUMBER 7358
4 changes: 0 additions & 4 deletions ddraw/IDirectDrawX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3291,16 +3291,12 @@ HRESULT m_IDirectDrawX::CreateD9Device(char* FunctionName)
0, 0, presParams.BackBufferWidth, presParams.BackBufferHeight, SWP_NOZORDER | SWP_NOMOVE);
}

if (WndDataStruct) WndDataStruct->IsCreatingD3d9 = true;

hr = d3d9Object->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd, BehaviorFlags, &presParams, &d3d9Device);
if (FAILED(hr) && presParams.FullScreen_RefreshRateInHz)
{
presParams.FullScreen_RefreshRateInHz = 0;
hr = d3d9Object->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd, BehaviorFlags, &presParams, &d3d9Device);
}

if (WndDataStruct) WndDataStruct->IsCreatingD3d9 = false;
}

if (FAILED(hr))
Expand Down

0 comments on commit 0ea9f66

Please sign in to comment.