mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
fix dds caps
This commit is contained in:
parent
9172074e63
commit
f54a3ec171
@ -1397,10 +1397,15 @@ HRESULT dd_CreateSurface(
|
||||
dst_surface->caps |= DDSCAPS_FRONTBUFFER;
|
||||
}
|
||||
|
||||
if (!(dst_surface->caps & DDSCAPS_SYSTEMMEMORY))
|
||||
{
|
||||
dst_surface->caps |= DDSCAPS_VIDEOMEMORY;
|
||||
}
|
||||
|
||||
dst_surface->caps |= DDSCAPS_VISIBLE;
|
||||
|
||||
dst_surface->width = g_ddraw.width;
|
||||
dst_surface->height = g_ddraw.height;
|
||||
|
||||
dst_surface->caps |= DDSCAPS_VIDEOMEMORY;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1575,11 +1580,21 @@ HRESULT dd_CreateSurface(
|
||||
desc.ddsCaps.dwCaps |= DDSCAPS_FLIP;
|
||||
}
|
||||
|
||||
if (dst_surface->caps & DDSCAPS_COMPLEX)
|
||||
{
|
||||
desc.ddsCaps.dwCaps |= DDSCAPS_COMPLEX;
|
||||
}
|
||||
|
||||
if (dst_surface->caps & DDSCAPS_VIDEOMEMORY)
|
||||
{
|
||||
desc.ddsCaps.dwCaps |= DDSCAPS_VIDEOMEMORY;
|
||||
}
|
||||
|
||||
if (dst_surface->caps & DDSCAPS_SYSTEMMEMORY)
|
||||
{
|
||||
desc.ddsCaps.dwCaps |= DDSCAPS_SYSTEMMEMORY;
|
||||
}
|
||||
|
||||
desc.dwWidth = dst_surface->width;
|
||||
desc.dwHeight = dst_surface->height;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user