=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: wined3d: Don' t create a DIB section in gdi_surface_map.

Alexandre Julliard julliard at winehq.org
Thu Nov 21 14:07:47 CST 2013


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

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Thu Nov 21 13:33:37 2013 +0100

wined3d: Don't create a DIB section in gdi_surface_map.

---

 dlls/wined3d/surface.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 8f383a6..878b848 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -1480,21 +1480,6 @@ static void gdi_surface_map(struct wined3d_surface *surface, const RECT *rect, D
 {
     TRACE("surface %p, rect %s, flags %#x.\n",
             surface, wine_dbgstr_rect(rect), flags);
-
-    if (!(surface->flags & SFLAG_DIBSECTION))
-    {
-        HRESULT hr;
-
-        /* This happens on gdi surfaces if the application set a user pointer
-         * and resets it. Recreate the DIB section. */
-        if (FAILED(hr = surface_create_dib_section(surface)))
-        {
-            ERR("Failed to create dib section, hr %#x.\n", hr);
-            return;
-        }
-        wined3d_resource_free_sysmem(&surface->resource);
-        surface->resource.allocatedMemory = surface->dib.bitmap_data;
-    }
 }
 
 static void gdi_surface_unmap(struct wined3d_surface *surface)




More information about the wine-cvs mailing list