mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 13:45:58 +00:00
Removed unused DeviceDriver. Fix behavior for dcattr.
svn path=/trunk/; revision=30371
This commit is contained in:
parent
cd2962c5b8
commit
a990ff1e0a
|
@ -513,7 +513,6 @@ typedef struct _DC
|
|||
HDEV GDIDevice; // Should be PDev or pPDev?
|
||||
DRIVER_FUNCTIONS DriverFunctions; // In GDIDEVICE
|
||||
UNICODE_STRING DriverName;
|
||||
HANDLE DeviceDriver; // ?DHPDEV?
|
||||
|
||||
CLIPOBJ *CombinedClip;
|
||||
|
||||
|
|
|
@ -218,7 +218,6 @@ NtGdiCreateCompatibleDC(HDC hDC)
|
|||
NewDC->w.bitsPerPixel = OrigDC->w.bitsPerPixel;
|
||||
|
||||
/* DriverName is copied in the AllocDC routine */
|
||||
NewDC->DeviceDriver = OrigDC->DeviceDriver;
|
||||
NewDC->Dc_Attr.ptlWindowOrg.x = OrigDC->Dc_Attr.ptlWindowOrg.x;
|
||||
NewDC->Dc_Attr.ptlWindowOrg.y = OrigDC->Dc_Attr.ptlWindowOrg.y;
|
||||
NewDC->Dc_Attr.szlWindowExt.cx = OrigDC->Dc_Attr.szlWindowExt.cx;
|
||||
|
@ -2534,6 +2533,7 @@ DC_FreeDcAttr(HDC DCToFree )
|
|||
PDC pDC = DC_LockDc(DCToFree);
|
||||
if (pDC->pDc_Attr == &pDC->Dc_Attr) return; // Internal DC object!
|
||||
pDC->pDc_Attr = NULL;
|
||||
// pDC->pDc_Attr = &pDC->Dc_Attr; // Correct behavior.
|
||||
DC_UnlockDc(pDC);
|
||||
|
||||
KeEnterCriticalRegion();
|
||||
|
|
Loading…
Reference in a new issue