diff options
Diffstat (limited to 'cd/src/cairo/cdcairoplus.c')
-rw-r--r-- | cd/src/cairo/cdcairoplus.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/cd/src/cairo/cdcairoplus.c b/cd/src/cairo/cdcairoplus.c new file mode 100644 index 0000000..a46d9f3 --- /dev/null +++ b/cd/src/cairo/cdcairoplus.c @@ -0,0 +1,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); +} |