From 299a3749d16b27fa2f9e5df5865ee36714e09b89 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Wed, 17 Mar 2010 15:49:25 +0000 Subject: [PATCH] Move the DC_InitHack svn path=/branches/reactos-yarotows/; revision=46249 --- subsystems/win32/win32k/objects/dclife.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/subsystems/win32/win32k/objects/dclife.c b/subsystems/win32/win32k/objects/dclife.c index ba5b7f1e303..fbd99939c65 100644 --- a/subsystems/win32/win32k/objects/dclife.c +++ b/subsystems/win32/win32k/objects/dclife.c @@ -333,8 +333,6 @@ DC_vInitDc( pdc->dcattr.iCS_CP = 0; pdc->pSurfInfo = NULL; - /* FIXME: HACK! */ - DC_InitHack(pdc); } BOOL @@ -480,6 +478,9 @@ GreOpenDCW( hdc = pdc->BaseObject.hHmgr; DC_vInitDc(pdc, iType, ppdev); + /* FIXME: HACK! */ + DC_InitHack(pdc); + DC_AllocDcAttr(pdc); DC_UnlockDc(pdc); @@ -639,6 +640,8 @@ NtGdiCreateCompatibleDC(HDC hdc) /* Initialize the new DC */ DC_vInitDc(pdcNew, DCTYPE_MEMORY, ppdev); + /* FIXME: HACK! */ + DC_InitHack(pdc); /* Allocate a dc attribute */ DC_AllocDcAttr(pdcNew);