mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-25 10:07:47 +01:00
clear ddcaps
This commit is contained in:
parent
4c12ebc077
commit
a72a95baca
4
src/dd.c
4
src/dd.c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user