Skip to content

Commit

Permalink
Reneable SwapEffectUpgradeShim fix
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed Feb 18, 2025
1 parent 4fe2a2b commit aff7e1a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dllmain/BuildNo.rc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define BUILD_NUMBER 7527
#define BUILD_NUMBER 7528
10 changes: 10 additions & 0 deletions ddraw/ddraw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,11 @@ HRESULT WINAPI dd_DirectDrawCreate(GUID FAR *lpGUID, LPDIRECTDRAW FAR *lplpDD, I
{
LOG_LIMIT(3, "Redirecting 'DirectDrawCreate' to --> 'Direct3DCreate9'");

if (Config.SetSwapEffectShim < 2)
{
Direct3D9SetSwapEffectUpgradeShim(Config.SetSwapEffectShim);
}

SetCriticalSection();

m_IDirectDrawX* p_IDirectDrawX = new m_IDirectDrawX(1, false);
Expand Down Expand Up @@ -443,6 +448,11 @@ HRESULT WINAPI dd_DirectDrawCreateEx(GUID FAR *lpGUID, LPVOID *lplpDD, REFIID ri

LOG_LIMIT(3, "Redirecting 'DirectDrawCreateEx' to --> 'Direct3DCreate9'");

if (Config.SetSwapEffectShim < 2)
{
Direct3D9SetSwapEffectUpgradeShim(Config.SetSwapEffectShim);
}

SetCriticalSection();

m_IDirectDrawX *p_IDirectDrawX = new m_IDirectDrawX(7, true);
Expand Down

0 comments on commit aff7e1a

Please sign in to comment.