Henri Verbeet : ddraw: Always pin surfaces.

Alexandre Julliard julliard at winehq.org
Wed Feb 22 14:27:39 CST 2012


Module: wine
Branch: master
Commit: f20e07b77bec5863e71141cfe623f1ef8ef28c60
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f20e07b77bec5863e71141cfe623f1ef8ef28c60

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Feb 22 09:36:28 2012 +0100

ddraw: Always pin surfaces.

---

 dlls/ddraw/surface.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/ddraw/surface.c b/dlls/ddraw/surface.c
index 2e97510..10643f5 100644
--- a/dlls/ddraw/surface.c
+++ b/dlls/ddraw/surface.c
@@ -5526,8 +5526,7 @@ HRESULT ddraw_surface_init(IDirectDrawSurfaceImpl *surface, IDirectDrawImpl *ddr
      * the surface isn't mapped, and that updates done this way will be
      * visible on the screen. The game Nox is such an application,
      * Commandos: Behind Enemy Lines is another. */
-    if (version == 1)
-        flags |= WINED3D_SURFACE_PIN_SYSMEM;
+    flags |= WINED3D_SURFACE_PIN_SYSMEM;
 
     if (desc->ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE)
     {




More information about the wine-cvs mailing list