c9b930331fa5f3c89416cbb7839b8102e9c8ea2d
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * PURPOSE: Functions for creation and destruction of DCs
5 * FILE: subsystem/win32/win32k/objects/device.c
6 * PROGRAMER: Timo Kreuzer (timo.kreuzer@rectos.org)
14 PDC defaultDCstate
= NULL
;
17 IntGdiReferencePdev(PPDEVOBJ ppdev
)
23 IntGdiUnreferencePdev(PPDEVOBJ ppdev
, DWORD CleanUpType
)
29 IntCreatePrimarySurface()
35 calledFromUser
= UserIsEntered(); //fixme: possibly upgrade a shared lock
42 IntAttachMonitor(gppdevPrimary
, 0);
44 DPRINT1("IntCreatePrimarySurface, pPrimarySurface=%p, pPrimarySurface->pSurface = %p\n",
45 pPrimarySurface
, pPrimarySurface
->pSurface
);
48 pso
= &PDEVOBJ_pSurface(pPrimarySurface
)->SurfObj
;
49 SurfSize
= pso
->sizlBitmap
;
51 /* Put the pointer in the center of the screen */
52 gpsi
->ptCursor
.x
= pso
->sizlBitmap
.cx
/ 2;
53 gpsi
->ptCursor
.y
= pso
->sizlBitmap
.cy
/ 2;
55 co_IntShowDesktop(IntGetActiveDesktop(), SurfSize
.cx
, SurfSize
.cy
);
57 // Init Primary Displays Device Capabilities.
58 PDEVOBJ_vGetDeviceCaps(pPrimarySurface
, &GdiHandleTable
->DevCaps
);
69 IntDestroyPrimarySurface()
77 // I guess we will soon have more than one primary surface.
78 // This will do for now.
79 return pPrimarySurface
;
89 IN OPTIONAL LPSTR pjIn
)