summaryrefslogtreecommitdiff
path: root/src/xrender/cdxrplus.c
diff options
context:
space:
mode:
authorscuri <scuri>2008-10-17 06:10:33 +0000
committerscuri <scuri>2008-10-17 06:10:33 +0000
commit7b52cc13af4e85f1ca2deb6b6c77de9c95ea0dcf (patch)
treed0857278bde2eff784227c57dcaf930346ceb7ac /src/xrender/cdxrplus.c
First commit - moving from LuaForge to SourceForge
Diffstat (limited to 'src/xrender/cdxrplus.c')
-rw-r--r--src/xrender/cdxrplus.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/xrender/cdxrplus.c b/src/xrender/cdxrplus.c
new file mode 100644
index 0000000..f938a6f
--- /dev/null
+++ b/src/xrender/cdxrplus.c
@@ -0,0 +1,26 @@
+/** \file
+ * \brief X-Render Control
+ *
+ * See Copyright Notice in cd.h
+ */
+
+#include "cd.h"
+#include "cd_private.h"
+#include <stdlib.h>
+#include <memory.h>
+
+cdContext* cdContextNativeWindowPlus(void);
+cdContext* cdContextImagePlus(void);
+cdContext* cdContextDBufferPlus(void);
+
+void cdInitContextPlus(void)
+{
+ cdContext* ctx_list[NUM_CONTEXTPLUS];
+ memset(ctx_list, 0, sizeof(ctx_list));
+
+ ctx_list[CD_CTX_NATIVEWINDOW] = cdContextNativeWindowPlus();
+ ctx_list[CD_CTX_IMAGE] = cdContextImagePlus();
+ ctx_list[CD_CTX_DBUFFER] = cdContextDBufferPlus();
+
+ cdInitContextPlusList(ctx_list);
+}