summaryrefslogtreecommitdiff
path: root/src/cairo/cdcairoplus.c
diff options
context:
space:
mode:
authorscuri <scuri>2010-05-12 20:38:46 +0000
committerscuri <scuri>2010-05-12 20:38:46 +0000
commitb7d97c7ed82f0d0472cf0c2ae5d61e99a73b33a8 (patch)
tree0da03500210df1ac835203e2bb83748564e67423 /src/cairo/cdcairoplus.c
parentafaff9e085b51c822f0ce31ac91cc8196bfa5113 (diff)
New Cairo driver
Diffstat (limited to 'src/cairo/cdcairoplus.c')
-rw-r--r--src/cairo/cdcairoplus.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/cairo/cdcairoplus.c b/src/cairo/cdcairoplus.c
new file mode 100644
index 0000000..c50f1ec
--- /dev/null
+++ b/src/cairo/cdcairoplus.c
@@ -0,0 +1,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);
+}