1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

Revert "make sure you can host "no-hd" games with 640x480"

This reverts commit 488bad66d86e36fbe09d421a63fae572d0d80a84.
This commit is contained in:
FunkyFr3sh 2024-03-09 21:38:24 +01:00
parent 488bad66d8
commit 951871669c
2 changed files with 2 additions and 11 deletions

View File

@ -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))

View File

@ -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;