mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
fix GetAttachedSurface
This commit is contained in:
parent
0133030c6a
commit
f39e3fcddb
@ -584,7 +584,7 @@ HRESULT dds_Flip(IDirectDrawSurfaceImpl* This, IDirectDrawSurfaceImpl* lpDDSurfa
|
||||
|
||||
HRESULT dds_GetAttachedSurface(IDirectDrawSurfaceImpl* This, LPDDSCAPS lpDdsCaps, IDirectDrawSurfaceImpl** lpDDsurface)
|
||||
{
|
||||
if ((This->caps & DDSCAPS_PRIMARYSURFACE) && (This->caps & DDSCAPS_FLIP) && (lpDdsCaps->dwCaps & DDSCAPS_BACKBUFFER))
|
||||
if (lpDdsCaps->dwCaps & DDSCAPS_BACKBUFFER)
|
||||
{
|
||||
if (This->backbuffer)
|
||||
{
|
||||
@ -601,6 +601,9 @@ HRESULT dds_GetAttachedSurface(IDirectDrawSurfaceImpl* This, LPDDSCAPS lpDdsCaps
|
||||
return DD_OK;
|
||||
}
|
||||
|
||||
return DDERR_NOTFOUND;
|
||||
}
|
||||
|
||||
HRESULT dds_GetCaps(IDirectDrawSurfaceImpl* This, LPDDSCAPS lpDDSCaps)
|
||||
{
|
||||
lpDDSCaps->dwCaps = This->caps;
|
||||
|
Loading…
x
Reference in New Issue
Block a user