mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
clear ddcaps
This commit is contained in:
parent
4c12ebc077
commit
a72a95baca
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…
x
Reference in New Issue
Block a user