Skip to content

Commit

Permalink
Revert "make sure you can host "no-hd" games with 640x480"
Browse files Browse the repository at this point in the history
This reverts commit 488bad6.
  • Loading branch information
FunkyFr3sh committed Mar 9, 2024
1 parent 488bad6 commit 9518716
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
3 changes: 1 addition & 2 deletions src/dd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1512,9 +1512,8 @@ HRESULT dd_CreateEx(GUID* lpGuid, LPVOID* lplpDD, REFIID iid, IUnknown* pUnkOute

g_ddraw->ref--;
}
TRACE("Alloc\n");

IDirectDrawImpl* dd = (IDirectDrawImpl*)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectDrawImpl));
TRACE("Alloc: dd=%p\n", dd);
memcpy(&dd->guid, iid, sizeof(dd->guid));

if (IsEqualGUID(&IID_IDirectDraw, iid))
Expand Down
10 changes: 1 addition & 9 deletions src/render_d3d9.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,13 @@ BOOL d3d9_is_available()
{
LPDIRECT3D9 d3d9 = NULL;

TRACE("d3d9_is_available\n");

if ((g_d3d9.hmodule = real_LoadLibraryA("d3d9.dll")))
{
TRACE("d3d9_is_available: mod=%p\n", g_d3d9.hmodule);

IDirect3D9* (WINAPI * d3d_create9)(UINT) =
(IDirect3D9 * (WINAPI*)(UINT))real_GetProcAddress(g_d3d9.hmodule, "Direct3DCreate9");

TRACE("d3d9_is_available: d3d_create9=%p\n", d3d_create9);

if (d3d_create9 && (d3d9 = d3d_create9(D3D_SDK_VERSION)))
{
TRACE("d3d9_is_available: release=%d\n", IDirect3D9_Release(d3d9));
}
IDirect3D9_Release(d3d9);
}

return d3d9 != NULL;
Expand Down

0 comments on commit 9518716

Please sign in to comment.