clear ddcaps

This commit is contained in:
FunkyFr3sh 2020-10-14 10:33:09 +02:00
parent 4c12ebc077
commit a72a95baca

View file

@ -153,6 +153,8 @@ HRESULT dd_GetCaps(LPDDCAPS lpDDDriverCaps, LPDDCAPS lpDDEmulCaps)
{
if (lpDDDriverCaps)
{
memset(lpDDDriverCaps, 0, sizeof(DDCAPS));
lpDDDriverCaps->dwSize = sizeof(DDCAPS);
lpDDDriverCaps->dwCaps = DDCAPS_BLT | DDCAPS_PALETTE | DDCAPS_BLTCOLORFILL | DDCAPS_BLTSTRETCH | DDCAPS_CANCLIP;
lpDDDriverCaps->dwCKeyCaps = 0;
@ -171,7 +173,7 @@ HRESULT dd_GetCaps(LPDDCAPS lpDDDriverCaps, LPDDCAPS lpDDEmulCaps)
if (lpDDEmulCaps)
{
lpDDEmulCaps->dwSize = 0;
memset(lpDDEmulCaps, 0, sizeof(DDCAPS));
}
return DD_OK;