Alexandre Julliard : gdi32: Remove the function table pointer from the DC structure.

Alexandre Julliard julliard at winehq.org
Fri Mar 18 11:30:19 CDT 2011


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Mar 18 13:00:54 2011 +0100

gdi32: Remove the function table pointer from the DC structure.

---

 dlls/gdi32/dc.c          |    3 ---
 dlls/gdi32/gdi_private.h |    1 -
 2 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/dlls/gdi32/dc.c b/dlls/gdi32/dc.c
index 465349c..064c9ee 100644
--- a/dlls/gdi32/dc.c
+++ b/dlls/gdi32/dc.c
@@ -77,7 +77,6 @@ DC *alloc_dc_ptr( WORD magic )
 
     if (!(dc = HeapAlloc( GetProcessHeap(), 0, sizeof(*dc) ))) return NULL;
 
-    dc->funcs               = &null_driver;
     dc->nulldrv.funcs       = &null_driver;
     dc->nulldrv.next        = NULL;
     dc->physDev             = &dc->nulldrv;
@@ -252,7 +251,6 @@ void push_dc_driver( DC * dc, PHYSDEV physdev, const DC_FUNCTIONS *funcs )
     physdev->next = dc->physDev;
     physdev->hdc = dc->hSelf;
     dc->physDev = physdev;
-    dc->funcs = physdev->funcs;
 }
 
 
@@ -266,7 +264,6 @@ void pop_dc_driver( DC * dc, PHYSDEV physdev )
     assert( physdev == dc->physDev );
     assert( physdev != &dc->nulldrv );
     dc->physDev = physdev->next;
-    dc->funcs = dc->physDev->funcs;
     physdev->funcs->pDeleteDC( physdev );
 }
 
diff --git a/dlls/gdi32/gdi_private.h b/dlls/gdi32/gdi_private.h
index 5fff65c..abb9588 100644
--- a/dlls/gdi32/gdi_private.h
+++ b/dlls/gdi32/gdi_private.h
@@ -246,7 +246,6 @@ typedef struct tagDC
     GDIOBJHDR    header;
     HDC          hSelf;            /* Handle to this DC */
     struct gdi_physdev nulldrv;    /* physdev for the null driver */
-    const struct tagDC_FUNCS *funcs; /* DC function table */
     PHYSDEV      physDev;         /* Physical device (driver-specific) */
     DWORD        thread;          /* thread owning the DC */
     LONG         refcount;        /* thread refcount */




More information about the wine-cvs mailing list