summaryrefslogtreecommitdiff
path: root/src/cairo/cdcairoplus.c
blob: c50f1ec4a778564d23c2a24f262c6057cb5902f0 (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
/** \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();
#ifdef WIN32
//  ctx_list[CD_CTX_PRINTER] = cdContextCairoPrinter();
#endif

  cdInitContextPlusList(ctx_list);
}