Mega hack to allow Capitalism2/CapLab's custom double-buffer system to draw.

Do not accept as is, please gate this in a config option
This commit is contained in:
kevok 2021-05-05 16:20:48 -04:00
parent d7ad443d92
commit 1bcbf98e2a

View file

@ -104,6 +104,7 @@ ULONG __stdcall IDirectDrawSurface__Release(IDirectDrawSurfaceImpl *This)
HRESULT __stdcall IDirectDrawSurface__AddAttachedSurface(IDirectDrawSurfaceImpl *This, LPDIRECTDRAWSURFACE lpDDSurface)
{
dprintf("-> %s(This=%p, lpDDSurface=%p)\n", __FUNCTION__, This, lpDDSurface);
((IDirectDrawSurfaceImpl*) lpDDSurface)->surface = This->surface;
HRESULT ret = dds_AddAttachedSurface(This, lpDDSurface);
dprintf("<- %s\n", __FUNCTION__);
return ret;