blob: 5da75467a26f97d95524ad681e11aa7afdb9595c (
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();
#ifndef WIN32
ctx_list[CD_CTX_PRINTER] = cdContextCairoPrinter();
#endif
cdInitContextPlusList(ctx_list);
}
|