gdi32: Remove the function table pointer from the DC structure.
This commit is contained in:
parent
3d34f01f3c
commit
ded15757a0
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue