clear ddcaps
This commit is contained in:
parent
4c12ebc077
commit
a72a95baca
1 changed files with 5 additions and 3 deletions
8
src/dd.c
8
src/dd.c
|
@ -151,8 +151,10 @@ HRESULT dd_EnumDisplayModes(DWORD dwFlags, LPDDSURFACEDESC lpDDSurfaceDesc, LPVO
|
||||||
|
|
||||||
HRESULT dd_GetCaps(LPDDCAPS lpDDDriverCaps, LPDDCAPS lpDDEmulCaps)
|
HRESULT dd_GetCaps(LPDDCAPS lpDDDriverCaps, LPDDCAPS lpDDEmulCaps)
|
||||||
{
|
{
|
||||||
if(lpDDDriverCaps)
|
if (lpDDDriverCaps)
|
||||||
{
|
{
|
||||||
|
memset(lpDDDriverCaps, 0, sizeof(DDCAPS));
|
||||||
|
|
||||||
lpDDDriverCaps->dwSize = sizeof(DDCAPS);
|
lpDDDriverCaps->dwSize = sizeof(DDCAPS);
|
||||||
lpDDDriverCaps->dwCaps = DDCAPS_BLT | DDCAPS_PALETTE | DDCAPS_BLTCOLORFILL | DDCAPS_BLTSTRETCH | DDCAPS_CANCLIP;
|
lpDDDriverCaps->dwCaps = DDCAPS_BLT | DDCAPS_PALETTE | DDCAPS_BLTCOLORFILL | DDCAPS_BLTSTRETCH | DDCAPS_CANCLIP;
|
||||||
lpDDDriverCaps->dwCKeyCaps = 0;
|
lpDDDriverCaps->dwCKeyCaps = 0;
|
||||||
|
@ -169,9 +171,9 @@ HRESULT dd_GetCaps(LPDDCAPS lpDDDriverCaps, LPDDCAPS lpDDEmulCaps)
|
||||||
lpDDDriverCaps->ddsCaps.dwCaps = DDSCAPS_FLIP;
|
lpDDDriverCaps->ddsCaps.dwCaps = DDSCAPS_FLIP;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(lpDDEmulCaps)
|
if (lpDDEmulCaps)
|
||||||
{
|
{
|
||||||
lpDDEmulCaps->dwSize = 0;
|
memset(lpDDEmulCaps, 0, sizeof(DDCAPS));
|
||||||
}
|
}
|
||||||
|
|
||||||
return DD_OK;
|
return DD_OK;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue