From 1bcbf98e2aaf605d689a024d53034feb9d93aab9 Mon Sep 17 00:00:00 2001 From: kevok Date: Wed, 5 May 2021 16:20:48 -0400 Subject: [PATCH] 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 --- src/IDirectDraw/IDirectDrawSurface.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/IDirectDraw/IDirectDrawSurface.c b/src/IDirectDraw/IDirectDrawSurface.c index fc90e20..f88e6a7 100644 --- a/src/IDirectDraw/IDirectDrawSurface.c +++ b/src/IDirectDraw/IDirectDrawSurface.c @@ -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;