summaryrefslogtreecommitdiff
path: root/src/gdiplus/cdwgdiplus.c
blob: 8a452395d99dbd7b729353fe5fe5d973c6150ae0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/** \file
 * \brief GDI+ Control
 *
 * See Copyright Notice in cd.h
 */
 
#include "cd.h"
#include "cd_private.h"
#include "cdgdiplus.h"
#include <stdlib.h>
#include <memory.h>

cdContext* cdContextNativeWindowPlus(void);
cdContext* cdContextImagePlus(void);
cdContext* cdContextDBufferPlus(void);
cdContext* cdContextPrinterPlus(void);
cdContext* cdContextEMFPlus(void);
cdContext* cdContextClipboardPlus(void);
void cdwpGdiPlusStartup(int debug);

void cdInitGdiPlus(void)
{
  cdInitContextPlus();
}

void cdInitContextPlus(void)
{
  cdContext* ctx_list[CD_CTXPLUS_COUNT];
  memset(ctx_list, 0, sizeof(ctx_list));

  ctx_list[CD_CTXPLUS_NATIVEWINDOW] = cdContextNativeWindowPlus();
  ctx_list[CD_CTXPLUS_IMAGE] = cdContextImagePlus();
  ctx_list[CD_CTXPLUS_DBUFFER] = cdContextDBufferPlus();
  ctx_list[CD_CTXPLUS_PRINTER] = cdContextPrinterPlus();
  ctx_list[CD_CTXPLUS_EMF] = cdContextEMFPlus();
  ctx_list[CD_CTXPLUS_CLIPBOARD] = cdContextClipboardPlus();

  cdInitContextPlusList(ctx_list);

  cdwpGdiPlusStartup(0);
}