1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * PURPOSE: Functions for creation and destruction of DCs
5 * FILE: win32ss/gdi/ntgdi/device.c
6 * PROGRAMER: Timo Kreuzer (timo.kreuzer@rectos.org)
7 */
8
9 #include <win32k.h>
10
11 #define NDEBUG
12 #include <debug.h>
13
14 PDC defaultDCstate = NULL;
15
16 BOOL FASTCALL
IntCreatePrimarySurface(VOID)17 IntCreatePrimarySurface(VOID)
18 {
19 /* Create surface */
20 PDEVOBJ_pSurface(gpmdev->ppdevGlobal);
21
22 DPRINT("IntCreatePrimarySurface, ppdevGlobal=%p, ppdevGlobal->pSurface = %p\n",
23 gpmdev->ppdevGlobal, gpmdev->ppdevGlobal->pSurface);
24
25 // Init Primary Displays Device Capabilities.
26 PDEVOBJ_vGetDeviceCaps(gpmdev->ppdevGlobal, &GdiHandleTable->DevCaps);
27
28 return TRUE;
29 }
30
31 VOID FASTCALL
IntDestroyPrimarySurface(VOID)32 IntDestroyPrimarySurface(VOID)
33 {
34 UNIMPLEMENTED;
35 }
36
37 PPDEVOBJ FASTCALL
IntEnumHDev(VOID)38 IntEnumHDev(VOID)
39 {
40 // I guess we will soon have more than one primary surface.
41 // This will do for now.
42 return gpmdev->ppdevGlobal;
43 }
44
45
46 INT
47 APIENTRY
NtGdiDrawEscape(IN HDC hdc,IN INT iEsc,IN INT cjIn,IN OPTIONAL LPSTR pjIn)48 NtGdiDrawEscape(
49 IN HDC hdc,
50 IN INT iEsc,
51 IN INT cjIn,
52 IN OPTIONAL LPSTR pjIn)
53 {
54 UNIMPLEMENTED;
55 return 0;
56 }
57
58
59