Mercurial > MadButterfly
diff src/mbaf/mbapp.c @ 993:5b58e74988bc refine_backend_if
Use mb_backend_t::new instead of mb_backend_t::init
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 22 Nov 2010 00:42:29 +0800 |
parents | 586e50f82c1f |
children | 5d9def42df12 |
line wrap: on
line diff
--- a/src/mbaf/mbapp.c Mon Nov 22 00:42:29 2010 +0800 +++ b/src/mbaf/mbapp.c Mon Nov 22 00:42:29 2010 +0800 @@ -2,13 +2,14 @@ // vim: sw=4:ts=8:sts=4 #include <mb.h> #include <mb_af.h> +#include <mb_backend.h> mbaf_t *mbaf_init(const char *module, const char *module_dir) { mbaf_t *app = (mbaf_t *) malloc(sizeof(mbaf_t)); - void *rt; + mb_rt_t *rt; - rt = backend.init(":0.0", 800, 600); + rt = backend.new(":0.0", 800, 600); if(rt == NULL) return NULL;