summaryrefslogtreecommitdiff
path: root/cd/src/cairo/cdcairoplus.c
blob: a46d9f31c471cec6ca7a17c86dae9f4bc5b465fa (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
/** \file
 * \brief Cairo as Context Plus
 *
 * See Copyright Notice in cd.h
 */
 
#include "cd.h"
#include "cd_private.h"
#include "cdcairo.h"
#include <stdlib.h>
#include <memory.h>


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

  ctx_list[CD_CTX_NATIVEWINDOW] = cdContextCairoNativeWindow();
  ctx_list[CD_CTX_IMAGE] = cdContextCairoImage();
  ctx_list[CD_CTX_DBUFFER] = cdContextCairoDBuffer();
#ifndef CAIRO_X11
  ctx_list[CD_CTX_PRINTER] = cdContextCairoPrinter();
#endif
#ifdef WIN32
  ctx_list[CD_CTX_EMF] = cdContextCairoEMF();
#endif

  cdInitContextPlusList(ctx_list);
}