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

This commit is contained in:
FunkyFr3sh 2024-03-09 21:33:38 +01:00
parent 6cc99330bd
commit 488bad66d8
2 changed files with 11 additions and 2 deletions

View file

@ -1512,8 +1512,9 @@ 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))