summaryrefslogtreecommitdiff
path: root/cd/src/gdiplus/cdwgdiplus.c
blob: a6862bc51e82d47d8eedee31bc098cb9e2b47ee3 (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[NUM_CONTEXTPLUS];
  memset(ctx_list, 0, sizeof(ctx_list));

  ctx_list[CD_CTX_NATIVEWINDOW] = cdContextNativeWindowPlus();
  ctx_list[CD_CTX_IMAGE] = cdContextImagePlus();
  ctx_list[CD_CTX_DBUFFER] = cdContextDBufferPlus();
  ctx_list[CD_CTX_PRINTER] = cdContextPrinterPlus();
  ctx_list[CD_CTX_EMF] = cdContextEMFPlus();
  ctx_list[CD_CTX_CLIPBOARD] = cdContextClipboardPlus();

  cdInitContextPlusList(ctx_list);

  cdwpGdiPlusStartup(0);
}