force DDSCAPS_VIDEOMEMORY for all surfaces, otherwise red alert 2 is not using ddraw blt
This commit is contained in:
parent
8c119f4e33
commit
6d337393ee
1 changed files with 1 additions and 4 deletions
|
@ -605,10 +605,7 @@ HRESULT __stdcall ddraw_surface_GetSurfaceDesc(IDirectDrawSurfaceImpl *This, LPD
|
|||
lpDDSurfaceDesc->ddpfPixelFormat.dwSize = sizeof(DDPIXELFORMAT);
|
||||
lpDDSurfaceDesc->ddpfPixelFormat.dwFlags = DDPF_RGB;
|
||||
lpDDSurfaceDesc->ddpfPixelFormat.dwRGBBitCount = This->bpp;
|
||||
lpDDSurfaceDesc->ddsCaps.dwCaps = This->caps;
|
||||
|
||||
if ((This->caps & DDSCAPS_PRIMARYSURFACE) && (This->caps & DDSCAPS_FLIP))
|
||||
lpDDSurfaceDesc->ddsCaps.dwCaps |= DDSCAPS_VIDEOMEMORY;
|
||||
lpDDSurfaceDesc->ddsCaps.dwCaps = This->caps | DDSCAPS_VIDEOMEMORY;
|
||||
|
||||
if (This->bpp == 8)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue