From 0ea9f66593b0410b37dc4e2d1755bbab03f096a3 Mon Sep 17 00:00:00 2001 From: Elisha Riedlinger Date: Thu, 5 Dec 2024 14:03:09 -0800 Subject: [PATCH] Move WndProc hooks to Direct3D9 --- Dllmain/BuildNo.rc | 2 +- ddraw/IDirectDrawX.cpp | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Dllmain/BuildNo.rc b/Dllmain/BuildNo.rc index bea12f66..0b87758b 100644 --- a/Dllmain/BuildNo.rc +++ b/Dllmain/BuildNo.rc @@ -1 +1 @@ -#define BUILD_NUMBER 7357 +#define BUILD_NUMBER 7358 diff --git a/ddraw/IDirectDrawX.cpp b/ddraw/IDirectDrawX.cpp index cba4b2cf..cf41036b 100644 --- a/ddraw/IDirectDrawX.cpp +++ b/ddraw/IDirectDrawX.cpp @@ -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))