Henri Verbeet : ddraw: Only set DDSCAPS_PRIMARYSURFACE on the root surface.
Alexandre Julliard
julliard at winehq.org
Tue Dec 3 13:46:36 CST 2013
Module: wine
Branch: master
Commit: 28efaec21f4420f98a7d2c78f6e5b6d0546ba154
URL: http://source.winehq.org/git/wine.git/?a=commit;h=28efaec21f4420f98a7d2c78f6e5b6d0546ba154
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Tue Dec 3 09:59:16 2013 +0100
ddraw: Only set DDSCAPS_PRIMARYSURFACE on the root surface.
---
dlls/ddraw/surface.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/ddraw/surface.c b/dlls/ddraw/surface.c
index 37fd096..ebc143b 100644
--- a/dlls/ddraw/surface.c
+++ b/dlls/ddraw/surface.c
@@ -4722,7 +4722,7 @@ static HRESULT WINAPI ddraw_surface7_SetPalette(IDirectDrawSurface7 *iface, IDir
if(This->surface_desc.ddsCaps.dwCaps & DDSCAPS_FRONTBUFFER)
{
/* For primary surfaces the tree is just a list, so the simpler scheme fits too */
- DDSCAPS2 caps2 = { DDSCAPS_PRIMARYSURFACE, 0, 0, 0 };
+ DDSCAPS2 caps2 = { DDSCAPS_FLIP, 0, 0, 0 };
surf = This;
while(1)
@@ -5978,8 +5978,8 @@ HRESULT ddraw_surface_create(struct ddraw *ddraw, const DDSURFACEDESC2 *surface_
desc = &texture->surface_desc;
/* Only one surface in the flipping chain is a back buffer, one is
- * a front buffer, the others are just primary surfaces. */
- desc->ddsCaps.dwCaps &= ~(DDSCAPS_FRONTBUFFER | DDSCAPS_BACKBUFFER);
+ * a front buffer, the others are just flippable surfaces. */
+ desc->ddsCaps.dwCaps &= ~(DDSCAPS_PRIMARYSURFACE | DDSCAPS_FRONTBUFFER | DDSCAPS_BACKBUFFER);
if (!i)
desc->ddsCaps.dwCaps |= DDSCAPS_BACKBUFFER;
desc->dwBackBufferCount = 0;
More information about the wine-cvs
mailing list