clear ddcaps
This commit is contained in:
parent
4c12ebc077
commit
a72a95baca
1 changed files with 5 additions and 3 deletions
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…
Add table
Add a link
Reference in a new issue