[PATCH] also remove backbuffer flags in the v1 DDRAW interface
Marcus Meissner
marcus at jet.franken.de
Sun Oct 5 14:26:00 CDT 2008
Hi,
This fixes http://bugs.winehq.org/show_bug.cgi?id=9008
by also filtering out the backbuffer flag.
Ciao, Marcus
---
dlls/ddraw/ddraw_thunks.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/ddraw/ddraw_thunks.c b/dlls/ddraw/ddraw_thunks.c
index b748ad4..c77b3bb 100644
--- a/dlls/ddraw/ddraw_thunks.c
+++ b/dlls/ddraw/ddraw_thunks.c
@@ -386,10 +386,10 @@ IDirectDrawImpl_CreateSurface(LPDIRECTDRAW This, LPDDSURFACEDESC pSDesc,
IDirectDrawSurfaceImpl *impl;
HRESULT hr;
- /* Remove front buffer flag, this causes failure in v7, and its added to normal
- * primaries anyway
+ /* Remove front and back buffer flag, this causes failure in v7,
+ * and its added to normal primaries anyway.
*/
- pSDesc->ddsCaps.dwCaps &= ~DDSCAPS_FRONTBUFFER;
+ pSDesc->ddsCaps.dwCaps &= ~(DDSCAPS_FRONTBUFFER|DDSCAPS_BACKBUFFER);
/* the LPDDSURFACEDESC -> LPDDSURFACEDESC2 conversion should be ok,
* since the data layout is the same */
hr = IDirectDraw7_CreateSurface(COM_INTERFACE_CAST(IDirectDrawImpl,
--
1.5.6
More information about the wine-patches
mailing list