From 7b52cc13af4e85f1ca2deb6b6c77de9c95ea0dcf Mon Sep 17 00:00:00 2001 From: scuri Date: Fri, 17 Oct 2008 06:10:33 +0000 Subject: First commit - moving from LuaForge to SourceForge --- html/download/cdxx.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 html/download/cdxx.c (limited to 'html/download/cdxx.c') diff --git a/html/download/cdxx.c b/html/download/cdxx.c new file mode 100644 index 0000000..ff6a132 --- /dev/null +++ b/html/download/cdxx.c @@ -0,0 +1,49 @@ +/* + Canvas Draw - CD_XX Driver +*/ + +#include "cd.h" +#include "cdxx.h" +#include "cd_private.h" +#include +#include +#include + + +struct _cdCtxCanvas +{ + cdCanvas* canvas; +}; + + +static void cdkillcanvas(cdCtxCanvas *ctxcanvas) +{ + free(ctxcanvas); +} + +static void cdcreatecanvas(cdCanvas *canvas, void *data) +{ + cdCtxCanvas* ctxcanvas = (cdCtxCanvas *)malloc(sizeof(cdCtxCanvas)); + + ctxcanvas->canvas = canvas; + canvas->ctxcanvas = ctxcanvas; +} + +static void cdinittable(cdCanvas* canvas) +{ + canvas->KillCanvas = cdkillcanvas; +} + +static cdContext cdXXContext = +{ + 0, + cdcreatecanvas, + cdinittable, + NULL, + NULL, +}; + +cdContext* cdContextXX(void) +{ + return &cdXXContext; +} -- cgit v1.2.3